Methods 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

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

docTienThanhChu(double soTien, {int roundDecimal = 2, bool lienHe = true, bool rutGon = false}) → String
getBool(Map? data, String key, {bool defaultValue = false}) → bool
getChanelId(int uidFrom, int uidTo) → String
getColor(Map? data, String key, {Color defaultValue = Colors.red}) → Color
getDataHashMap(Map? data, String key, {Object? defaultValue = ''}) → Object?
getDateTime(Map? data, String key, {DateTime? defaultValue}) → DateTime?
getDouble(Map? data, String key, {double defaultValue = 0}) → double
getFileId(String fullPath) → int
getFileName(String fullPath) → String
getFilePath(String fullPath) → String
getFullURLFileHosting(String collection, int documentID, String fileName) → String
getInt(Map? data, String key, {int defaultValue = 0}) → int
getList(Map<String, Object?>? data, String key) → List<Map<String, Object?>>
getListBool(Map? data, String key) → List<bool>
getListChildTable(Map<String, List<Map<String, Object?>?>?>? data, int idItem, String key, {String keyRef = 'refID'}) → List<Map<String, Object?>>
getListDouble(Map? data, String key) → List<double>
getListFile(dynamic data) → List<File>
getListInt(Map? data, String key) → List<int>
getListString(Map? data, String key) → List<String>
getMap(Map<String, Object?>? data, String key) → Map<String, Object?>
getString(Map? data, String key, {String defaultValue = ''}) → String
getTime(Map? data, String key, {DateTime? defaultValue}) → DateTime?
getURI(String path) → Uri
getURL(String path) → String
getUrlByData(Map? data, String key, {String defaultValue = ''}) → String
getValueListHashMap(List<Map<String, Object?>> data, String value, String fieldNameCompare, String fileNameReturn, {Object? defaultValue}) → String
isAsset(String? value) → bool
isAudio(String? path) → bool
isHtml(String? value) → bool
isImage(String? path) → bool
isNetwork(String? value) → bool
isStringSvg(String? value) → bool
isSvg(String? value) → bool
isVideo(String? path) → bool
joinImage(File file, {double extendSize = 100.0}) → Future<String>
preparePhone(String phone) → String
removeToneMark(String? str) → String?
resizeUploadFileParent(File file, String tableName, int id, String fieldName, {String fileName = '', int targetWidth = 300, int quality = 80}) → Future<String>
resizeUploadFileParentChild(File file, String tableName, int id, String fieldName, String parentTableName, int parentId, {String fileName = '', int targetWidth = 300, int quality = 80}) → Future<String>
round(double d, int r) → double
showDate(DateTime? date, {String format = 'dd/MM/yyyy'}) → String
timeAgoString(DateTime date) → String
toBool(String? s, {bool defaultValue = false}) → bool
toDateTime(String? s, {DateTime? defaultValue}) → DateTime?
toDouble(String? s, {double defaultValue = 0}) → double
toInt(String? s, {bool isFloor = true, int defaultValue = 0}) → int
toTime(String? s, {DateTime? defaultValue}) → DateTime?
uploadFileParent(File file, String tableName, int id, String fieldName, {String fileName = ''}) → Future<String>
uploadFileParentChild(File file, String tableName, int id, String fieldName, String parentTableName, int parentId, {String fileName = ''}) → Future<String>
validPhoneNumber(String? phone, {String countryCode = 'vn'}) → bool