setBusy method Null safety

void setBusy(
  1. {dynamic busyTaskKey}
)

Sets the busy status to true

busyTaskKey can be optionally set to help identify why the view model is busy. This can then be accessed by the UI to react differently depending on what the view model is doing.

Implementation

void setBusy({dynamic busyTaskKey}) {
  setBusyStatus(isBusy: true, busyTaskKey: busyTaskKey);
}