wait method

void wait({
  1. bool signal = true,
})
inherited

Implementation

void wait({bool signal = true}) {
  if (!_busy) {
    _busy = true;
    _error = '';

    if (signal) _onStateChanged.call();
  }
}