CoreUtil 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
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
checkKeyFromJson(dynamic json, String key)
→ bool
-
-
checkPermission(Permission permission)
→ Future<PermissionStatus>
-
-
dateToString(DateTime date, {String pattern = CoreConstants.datePatternEN, String locale = CoreConstants.localeEN})
→ String
-
-
doubleToString(double value, {String locale = CoreConstants.localeENLang, int? digits})
→ String
-
-
getDeviceId()
→ Future<String>
-
-
getFullAddress(String address, String city, String district)
→ String
-
-
getIP()
→ Future<String>
-
-
getTimeAgo(String strDatetime)
→ String
-
-
getValueFromJson(dynamic json, String key, dynamic defaultValue)
→ dynamic
-
-
isAudio(String url)
→ bool
-
-
isImage(String url)
→ bool
-
-
isVideo(String url)
→ bool
-
-
stringToDateTime(String source, {String pattern = CoreConstants.dateTimePattern, String locale = CoreConstants.localeEN})
→ DateTime
-
-
stringToLinkHtml(String str, {double width = 0.0, double height = 0.0})
→ String
-