MyStream_c<T> constructor
MyStream_c<T> ({
- required T value,
- bool checkModify = false,
- List<
MyStreamListener_c< ? listeners,T> >
value
初始值listeners
Implementation
MyStream_c({
required T value,
this.checkModify = false,
List<MyStreamListener_c<T>>? listeners,
}) : _value = value,
_listeners = listeners ?? <MyStreamListener_c<T>>[];