error property

FailureResponse<E>? get error

Error payload for failed / networkError states, null otherwise

Implementation

FailureResponse<E>? get error => switch (this) {
  FailedState<T, E>(error: final e) => e,
  NetworkErrorState<T, E>(error: final e) => e,
  _ => null,
};