AsyncBindableProperty<TValue> class

异步请求绑定属性

Inheritance

Constructors

AsyncBindableProperty(AsyncValueGetter<TValue> futureGetter, {TValue handle(TValue)?, void onStart()?, void onEnd()?, void onSuccess(TValue)?, void onError(dynamic)?, PropertyValueChanged<AsyncSnapshot<TValue>>? valueChanged, TValue? initial})
具备处理异步请求的绑定属性

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value AsyncSnapshot<TValue>
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
no setteroverride

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
dispose
inherited
invoke({bool resetOnBefore = true}) → void
发起请求
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
发送通知
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited
transform<T>({required T? transformer(AsyncSnapshot<TValue>), required T initial, PropertyValueChanged<T>? valueChanged}) BindableProperty<T>
从当前绑定属性转换到一个新的绑定属性
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited