setBusy method

void setBusy(
  1. bool isBusy, {
  2. String? title,
  3. String? message,
})

Sets the busy state along with optional title and message.

isBusy New busy state. title Optional title to be shown when busy. message Optional message to be shown when busy.

Implementation

void setBusy(
  bool isBusy, {
  String? title,
  String? message,
}) {
  _isBusy.value = isBusy;
  _busyTitle = title;
  _busyMessage = message;
  if (!isBusy) {
    _busyTitle = null;
    _busyMessage = null;
  }
}