toLoading method
Returns a new AsyncState representing the loading state.
Use this to transition to a loading state from any other state.
Implementation
@override
AsyncState<S> toLoading() => _copyWith(status: AsyncStatus.loading);
Returns a new AsyncState representing the loading state.
Use this to transition to a loading state from any other state.
@override
AsyncState<S> toLoading() => _copyWith(status: AsyncStatus.loading);