BindableProperty<TValue> class abstract

绑定属性

Inheritance
Implemented types
Implementers

Constructors

BindableProperty({PropertyValueChanged<TValue>? valueChanged})
BindableProperty

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 → TValue
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
dispose
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
发送通知
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(TValue), required T initial, PropertyValueChanged<T>? valueChanged}) BindableProperty<T>
从当前绑定属性转换到一个新的绑定属性

Operators

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

Static Methods

$adaptive<TValue, TAdaptee extends Listenable>(TAdaptee adaptee, {required TValue valueGetter(TAdaptee), required void valueSetter(TAdaptee, TValue), PropertyValueChanged<TValue>? valueChanged, TValue? initial}) AdaptiveBindableProperty<TValue, TAdaptee>
创建适配绑定属性
$async<TValue>(AsyncValueGetter<TValue> futureGetter, {TValue handle(TValue)?, void onStart()?, void onEnd()?, void onSuccess(TValue)?, void onError(dynamic)?, PropertyValueChanged<AsyncSnapshot<TValue>>? valueChanged, TValue? initial}) AsyncBindableProperty<TValue>
创建具备处理异步请求的绑定属性
$custom<TValue>({required ValueGetter<TValue> valueGetter, required ValueSetter<TValue> valueSetter, PropertyValueChanged<TValue>? valueChanged}) CustomBindableProperty<TValue>
创建自定义绑定属性
$filter<TValue>(ValueListenable<TValue> valueListenable, {required bool filter(TValue value), required TValue initial, PropertyValueChanged<TValue>? valueChanged}) BindableProperty<TValue>
过滤指定 ValueListenable 得到一个新的绑定属性
$map<TValue>(Iterable<TValue> values, {PropertyValueChanged<TValue>? valueChanged}) List<BindableProperty<TValue>>
将值 TValue 集合转换为绑定属性 BindableProperty 集合
$merge<TValue>(Iterable<ValueListenable<TValue>> valueListenables, {PropertyValueChanged<Iterable<TValue>>? valueChanged}) MergeBindableProperty<TValue>
创建合并的绑定属性
$mergeMap<TValue>(Map<Object, ValueListenable<TValue>> map, {PropertyValueChanged<Map<Object, TValue>>? valueChanged}) MergeMapBindableProperty<TValue>
创建具有键的合并的绑定属性
$periodic<TValue>({required Duration duration, required TValue tickToValue(int tick), required TValue initial, int initialTick = 0, bool autostart = false, int? repeat, void onTick(int tick)?, void statusChanged(PeriodicBindableProperty<TValue>)?, PropertyValueChanged<TValue>? valueChanged}) PeriodicBindableProperty<TValue>
创建具有周期性的绑定属性
$tick({required Duration duration, int initial = 0, int initialTick = 0, bool autostart = false, int? repeat, void onTick(int tick)?, void statusChanged(PeriodicBindableProperty<int>)?, PropertyValueChanged<int>? valueChanged}) PeriodicBindableProperty<int>
创建具有周期性的绑定属性
$transform<TValue, TSValue>(ValueListenable<TSValue> valueListenable, {required TValue? transformer(TSValue value), required TValue initial, PropertyValueChanged<TValue>? valueChanged}) BindableProperty<TValue>
从指定 ValueListenable 转换到一个新的绑定属性
$value<TValue>({required TValue initial, PropertyValueChanged<TValue>? valueChanged}) ValueBindableProperty<TValue>
创建值绑定属性