BaseAsyncState<S extends Object?> constructor
const
BaseAsyncState<S extends Object?> ({
- required AsyncStatus status,
- S? data,
- ErrorState? errorState,
Creates a BaseAsyncState with optional data
and errorState
.
This constructor is typically used by subclasses.
Implementation
const BaseAsyncState({
required AsyncStatus status,
this.data,
this.errorState,
}) : _status = status;