MyEventControl_c 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
-
checkTimeOut<T>(Future<T> future, Duration duration, {FutureOr<T?> onDone(T value, bool isTimeOut)?})
→ Future<T?>
-
- 检查
future
的执行是否超时
该函数只会在future
完成后才会调用onDone
并返回结果
- 注意,部分阻塞会导致
startTime
和endTime
在future
一段时间后返回后仍然相等,
导致isTimeOut
永远为false
。例如win端调用系统选择文件夹路径接口