Util class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Static Methods
-
checkKeyFromJson(dynamic json, String key)
→ bool
-
-
chooseEnv(String value)
→ void
-
-
clearPermission({bool hasCTV = false})
→ void
-
-
createHashTags(String str)
→ List<String>
-
-
dateToString(DateTime date, {String? pattern, String? locale})
→ String
-
-
doubleToString(double value, {String? locale, int digit = 0})
→ String
-
-
downloadImage(String url, String path)
→ Future<File?>
-
-
getGenderOption()
→ List<ItemModel>
-
-
getPermission({bool hasCTV = false})
→ Future<void>
-
-
getTimeAgo(String strDatetime)
→ String
-
-
getUserTypeOption()
→ List<ItemModel>
-
-
getValueFromJson(dynamic json, String key, dynamic defaultValue)
→ dynamic
-
-
hasDomain(String url)
→ bool
-
-
isImage(String url)
→ bool
-
-
isNullFromJson(dynamic json, String key)
→ bool
-
-
loadFilesFromNetwork(dynamic repository, List<ItemModel> root)
→ Future<List<File>>
-
-
strDateToString(String value, {String pattern = 'HH:mm dd/MM/yyyy'})
→ String
-
-
stringToDateTime(String source, {String? pattern, String? locale})
→ DateTime
-
-
stringToDouble(String value, {String? locale})
→ double
-
-
trackActivities({String path = '', String? urlPath, String method = 'onTap', String? clientKey})
→ Future<void>
-