UnitsDataTool 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
-
converFileName(String filePath)
→ String
-
-
converOssPath(String filePath)
→ String
-
-
getFileSizeString({required int bytes, int decimals = 0})
→ String
-
-
getValue<T>(String key, T defaultValue)
→ Future
-
-
indexTypeConvertToString(IndexType type)
→ String
-
-
readBool(String key, [bool defaultValue = false])
→ Future<bool>
-
-
readDouble(String key, [double defaultValue = 0.0])
→ Future<double>
-
-
readInt(String key, [int defaultValue = 0])
→ Future<int>
-
-
readString(String key, [String defaultValue = ""])
→ Future<String>
-
-
readStringList(String key)
→ Future<List<String>>
-
-
saveBool(String key, bool? value, [bool defaultValue = false])
→ Future<bool>
-
-
saveDouble(String key, double? value, [double defaultValue = 0.0])
→ Future<bool>
-
-
saveInt(String key, int? value, [int defaultValue = 0])
→ Future<bool>
-
-
saveString(String key, String? value, [String defaultValue = ""])
→ Future<bool>
-
-
saveStringList(String key, List<String> value)
→ Future<bool>
-
-
setValue(String key, Object? value)
→ void
-
-
stationStatusColor(int stationStatus)
→ Color?
-
-
stationStatusText(int stationStatus)
→ String?
-
-
transformImageSrc(String img)
→ String
-