toData method
Returns a new AsyncState with the given data
.
Use this to transition to a data state from any other state.
Implementation
@override
AsyncState<S> toData(S data) => AsyncState.data(data);
Returns a new AsyncState with the given data
.
Use this to transition to a data state from any other state.
@override
AsyncState<S> toData(S data) => AsyncState.data(data);