PeriodicBindableProperty<TValue> class
具有周期性的绑定属性
- Inheritance
-
- Object
- ChangeNotifier
- BindableProperty<
TValue> - PeriodicBindableProperty
Constructors
-
PeriodicBindableProperty({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}) - 创建具有周期性的绑定属性
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
- started → bool
-
是否已开始
no setter
- value → 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
-
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
-
reset(
) → void - 重置
-
restart(
) → void - 重新开始
-
start(
) → void - 开始
-
stop(
) → void - 停止
-
toggle(
) → void - 开关
-
toString(
) → String -
A string representation of this object.
inherited
-
transform<
T> ({required T? transformer(TValue), required T initial, PropertyValueChanged< T> ? valueChanged}) → BindableProperty<T> -
从当前绑定属性转换到一个新的绑定属性
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited