BaseAsyncState<S extends Object?>.error constructor
const
BaseAsyncState<S extends Object?>.error (
- ErrorState? errorState
Creates an error state with the given errorState
.
Use this when the asynchronous operation has failed and you want to provide error details.
Implementation
const BaseAsyncState.error(this.errorState)
: data = null,
_status = AsyncStatus.error;