couver_util
library
Functions
-
contrastColor(Color color, {double threshold = 0.15})
→ Color
-
-
contrastColorTrans(Color color, {double blackOpacity = 0.12, double whiteOpacity = 0.24, double threshold = 0.15})
→ Color
-
-
encodeQueryParameters(Map<String, String> params)
→ String
-
-
hasMatch(String? value, String pattern)
→ bool
-
-
isDark(Color color, {double threshold = 0.15})
→ bool
-
-
isURL(String s)
→ bool
-
-
shortenParamForLog(dynamic value, {int keep = 1000})
→ dynamic
-
-
takeFirst(String? value, int count)
→ String
-
-
takeLast(String? value, int count)
→ String
-
-
tBool(dynamic value, {num numberThreshold = 0, bool defaultValue = false})
→ bool
-
-
tDateString(dynamic val)
→ String?
-
-
tDaysFromNow(dynamic val)
→ int?
-
-
tDouble(dynamic value, {double defaultValue = 0.0})
→ double
-
-
tDoubleOrNull(dynamic value)
→ double?
-
-
tInt(dynamic value, {int defaultValue = 0})
→ int
-
-
tIntOrNull(dynamic value)
→ int?
-
-
tList<T>(dynamic val)
→ List<T>
-
-
tListOrNull<T>(dynamic val, {bool allowEmpty = false})
→ List<T>?
-
-
tListString(dynamic val)
→ List<String>
-
-
tMap(dynamic val)
→ Map<String, Object>
-
-
toPrettyJson(dynamic json)
→ String?
-
-
toPrice(dynamic cents, {bool showPlus = false, bool isNegative = false, String? symbol = "\$", int decimalDigits = 2, double divider = 100, bool removeTrailingZeros = false})
→ String
-
-
tString(dynamic value, {bool allowEmpty = true, String defaultValue = ""})
→ String
-
-
tStringOrNull(dynamic value, {bool allowEmpty = false})
→ String?
-
-
tTime(dynamic val, {bool toLocal = true})
→ DateTime?
-
-
tUrl(dynamic val)
→ String
-
-
tUrlOrNull(dynamic val)
→ String?
-