util library
Classes
Enums
Extensions
- BinaryUtilEncodeEx on Object
- BinaryUtilEx on Uint8List
- JSonBinaryUtilEx on String
- StringEx on String
- TypeEx on Object
Functions
-
combineProps(
VoltronMap origin, VoltronMap diff, {int combineLevel = 0}) → VoltronMap -
createDir(
Directory? parent, String dirName) → Future< Directory?> -
currentMicroseconds(
) → int -
currentTimeMillis(
) → int -
enumValueToString(
Object o) → String -
fileNameByFile(
FileSystemEntity? file) → String -
floatsEqual(
double f1, double f2) → bool -
getDimensions(
int windowWidth, int windowHeight, bool shouldUseScreenDisplay, BuildContext? context) → VoltronMap -
getImage(
String src) → ImageProvider< Object> -
getJsonDoubleNumber(
double? value, [double defaultValue = 0.0]) → double - 获取json格式下的double number, 如果当前number的值为null或nan,就返回默认值 或 0.0
-
getSizeFromKey(
GlobalKey< State< key) → SizeStatefulWidget> > -
imageFromBase64String(
String base64String) → MemoryImage -
isDoubleNan(
double f1) → bool -
isEmpty(
String? value) → bool -
loadAssetFileBinary(
String name) → Future< ByteData> -
objectToJson(
Object? obj) → String -
parseJsonString(
String jsonString) → Object? -
stringFormat(
String value) → String
Typedefs
- LogListener = dynamic Function(String tag, LogLevel level, String msg)