MyStream_c<T> constructor

MyStream_c<T>({
  1. required T value,
  2. bool checkModify = false,
  3. List<MyStreamListener_c<T>>? listeners,
})
  • value 初始值
  • listeners

Implementation

MyStream_c({
  required T value,
  this.checkModify = false,
  List<MyStreamListener_c<T>>? listeners,
})  : _value = value,
      _listeners = listeners ?? <MyStreamListener_c<T>>[];