CoderAsyncState<T>.error constructor

CoderAsyncState<T>.error(
  1. String error
)

Factory to create a state containing error message.

Implementation

factory CoderAsyncState.error(String error) =>
    CoderAsyncState._(error: error, isLoading: false);