currentValue property
Data?
currentValue
Getter for the last value of the stream. Returns null if the stream is empty.
Implementation
Data? get currentValue {
return currentState.map(
empty: (_) => null,
ready: (state) => state.data,
);
}