MyStream_c<T> class

Constructors

MyStream_c({required T value, bool checkModify = false, List<MyStreamListener_c<T>>? listeners})
  • value 初始值
  • listeners
  • MyStream_c.listener({required T value, bool checkModify = false, List<MyStreamListener_c<T>>? listeners, List<void Function(T data, bool? hasModify)>? onActiveFunList})

    Properties

    checkModify bool
    final
    hashCode int
    The hash code for this object.
    no setterinherited
    hasNotify bool
    no setter
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    value ↔ T
    getter/setter pair

    Methods

    addListener(void onActive(T value, bool? hasModify), {bool hasModify(T oldData, T newData)?, bool onlyNotifyWhenModify = true}) MyStreamListener_c<T>
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    notify(T in_value, {bool? in_modify}) → void
    写入新值,发送通知
    reflush({bool hasModify = false}) → void
    发送通知,但值仍为本身
    removeListener(MyStreamListener_c? item) bool
    toString() String
    A string representation of this object.
    inherited

    Operators

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