utils library

Extensions

ColorIsDark on Color

Functions

darken(Color color, [double amount = .1]) Color
dateFormat(DateTime? date, {bool withDetails = false}) String?
dateToDB(DateTime? date, {bool withTime = false}) String?
Use withTime to return python datetime format
extractFolderName(String path) String?
extractNumber(String text) String
foregroundColorByLuminance(Color background) Color
formatCPF(String cpf) String
formatCurrency({double? value, Decimal? decimalValue}) String?
formatDate(DateTime? date, {bool? en}) String?
formatDateTime(DateTime? date) String?
formatTime(DateTime? date) String?
getLanguage(String localeName) String
isDarkMode(BuildContext context) bool
lighten(Color color, [double amount = .1]) Color
removeDiacritics(String str) String
toDateTime(dynamic str) DateTime?