OtherUtils class

Constructors

OtherUtils()

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

debounce(Function func, [int delay = 500]) → void
防抖 (传入所要防抖的方法/回调与延迟时间)
debounce2(Function func, [int delay = 500]) → dynamic
防抖 (传入所要防抖的方法/回调与延迟时间)
debounceInput(dynamic func(dynamic), [int delay = 500]) → dynamic
录入框防抖 (传入所要防抖的方法/回调与延迟时间)
exitAndroidApp() → void
退出应用程序
exitApp() → void
退出应用程序
launchApp(String app) Future<void>
调起其他app
launchTelURL(String phone) Future<void>
调起拨号页
launchWebURL(String url) Future<void>
打开链接
throttle(Function func, [int delay = 500]) → void
节流 (传入所要节流的方法/回调与延迟时间)
throttle2(Function func, [int delay = 500]) → dynamic
节流 (传入所要节流的方法/回调与延迟时间)
throttle3(Function func, [int delay = 500]) → dynamic
节流 (传入所要节流的方法/回调与延迟时间)