AIState<T>.error constructor

AIState<T>.error(
  1. Exception error
)

Creates an error state

Implementation

factory AIState.error(Exception error) => AIState(
      error: error,
      status: AIStatus.error,
    );