BaseAsyncState<S extends Object?> constructor

const BaseAsyncState<S extends Object?>({
  1. required AsyncStatus status,
  2. S? data,
  3. 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;