XUtil 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
-
countdown(dynamic time, dynamic callback)
→ dynamic
-
-
debounce(Function func, StackTrace key, {Duration duration = const Duration(milliseconds: 500)})
→ dynamic
-
函数防抖
-
deepClone(dynamic obj)
→ dynamic
-
-
filterKey(dynamic params, dynamic key)
→ dynamic
-
-
filterList(dynamic data)
→ dynamic
-
-
flutterPop()
→ dynamic
-
-
formatName(String text, {dynamic type = "text"})
→ String
-
-
getTotalSizeOfFilesInDir(FileSystemEntity file)
→ Future
-
-
getVersion(dynamic version)
→ dynamic
-
-
getY(BuildContext buildContext)
→ double
-
-
intParse(dynamic params)
→ dynamic
-
-
isJson(dynamic source)
→ bool
-
-
loadImage(String url)
→ Future<Image>
-
-
mapIcons(dynamic url)
→ dynamic
-
-
moreData(List? res, [int page = 20])
→ dynamic
-
-
recursive(dynamic data, dynamic keys)
→ dynamic
-
-
renderSize(double value, [dynamic fix = 2])
→ String
-
-
splitList(dynamic xList, [dynamic chunk = 2])
→ List
-
-
throttle(Function func, StackTrace key, {Duration duration = const Duration(milliseconds: 2000)})
→ dynamic
-
-
toInt(dynamic value)
→ dynamic
-
-
typeOf(dynamic element)
→ String
-
-
versionDiff(String version, String version1)
→ bool
-
版本比较