Writable<T> constructor
Writable<T> ({
- T? state,
- bool setInitialState = true,
Implementation
Writable({T? state, bool setInitialState = true}) {
if (setInitialState)
_controller = ModifiedBehaviorSubject<StateSnapshot<T>>.seeded(
_initialState(state));
else
_controller = ModifiedBehaviorSubject<StateSnapshot<T>>();
}