toLoading method

  1. @override
AsyncState<S> toLoading()
override

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