setBusy method

void setBusy(
  1. bool isBusy, {
  2. String? busyTitle,
  3. String? busyMessage,
  4. Duration minBusyDuration = TurboMvvmDefaults.minBusy,
  5. TBusyType? busyType,
  6. Duration? timeoutDuration,
  7. VoidCallback? onTimeout,
  8. dynamic payload,
})

Sets the busy state.

isBusy The new busy state. busyTitle Optional title for the busy state. busyMessage Optional message for the busy state. minBusyDuration Minimum duration to remain in busy state. busyType Optional busy type.

Implementation

void setBusy(
  bool isBusy, {
  String? busyTitle,
  String? busyMessage,
  Duration minBusyDuration = TurboMvvmDefaults.minBusy,
  TBusyType? busyType,
  Duration? timeoutDuration,
  VoidCallback? onTimeout,
  dynamic payload,
}) => _busyService.setBusy(
  isBusy,
  busyTitle: busyTitle,
  busyMessage: busyMessage,
  minBusyDuration: minBusyDuration,
  busyType: busyType,
  timeoutDuration: timeoutDuration,
  onTimeout: onTimeout,
  payload: payload,
);