MyStreamListener_c<T> class
Constructors
- MyStreamListener_c({required int id, required void onActive(T data, bool? hasModify), required bool hasModify(T oldData, T newData)?, required bool onlyNotifyWhenModify, required MyStream_c? stream})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasModify → bool Function(T oldData, T newData)?
-
final
- id → int
-
final
- onActive → void Function(T data, bool? hasModify)
-
final
- onlyNotifyWhenModify → bool
-
指定仅当状态改变时才通知
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stream ↔ MyStream_c?
-
getter/setter pair
Methods
-
dispose(
) → bool? - 移除监听器
-
isActive(
) → bool - 监听器是否可用
-
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
-
defHasModify(
dynamic oldData, dynamic newData) → bool