toData method

  1. @override
AsyncState<S> toData(
  1. S data
)
override

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);