toData abstract method

AsyncState<S> toData(
  1. S data
)

Returns a new state with the given data.

Use this to transition to a data state from any other state.

Implementation

AsyncState<S> toData(S data);