EventNotifier class
create_user: zhengzaihong email:1096877329@qq.com create_date: 2024/7/30 create_time: 16:13 describe:
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
-
addListener(
dynamic target, dynamic listener(dynamic)) → void -
clear(
) → void -
get(
dynamic target) → ValueNotifier? -
obtain<
T> (dynamic target, {dynamic listener(dynamic)?, T? defaultValue}) → ValueNotifier -
remove(
dynamic target) → void - 注意: 当有多个地方使用同一个ValueNotifier时,注意回收的时机。
-
removeListener(
dynamic target, dynamic listener(dynamic)) → void -
sendNotification<
T> (dynamic target, T? object) → void