setIdle method

void setIdle({
  1. required bool hasError,
})

Set isBusy flag to false and hasError to the specified value, then trigger view widget rebuild.

Implementation

void setIdle({required bool hasError}) {
  _hasError = hasError;
  _busy = false;

  notifyListeners();
}