AsyncState<S extends Object?>.errorWithState constructor

const AsyncState<S extends Object?>.errorWithState(
  1. ErrorState? errorState
)

Creates an error state with an existing ErrorState.

errorState is the error information to use.

Use this when you already have an ErrorState object and want to create an error state.

Implementation

const AsyncState.errorWithState(super.errorState) : super.error();