fail method

void fail(
  1. Object error,
  2. StackTrace stackTrace
)

Called when a data load fails.

Stores the error and its stack trace, then sets ServiceStatus.failed.

Implementation

void fail(Object error, StackTrace stackTrace) {
  if (_isDisposed) return;
  _error = error;
  _stackTrace = stackTrace;
  _status = .failed;
}