fail method

void fail(
  1. dynamic error
)

Called when a data load fails.

By default, this sets the state to ServiceStatus.failed.

Implementation

void fail(dynamic error) {
  _error = error;
  _status = ServiceStatus.failed;
}