busy property

bool get busy

Whether the view model is currently busy performing a long running task. Can be used by the UI to show a loading indicator or prevent user interaction.

You can use the setBusy and setNotBusy functions to update this status, or the doAsync function to automatically update the busy status while performing a long running task.

You can also subscribe to changes in the busy status by registering an event handler using the addBusyStatusChangedListener function.

Implementation

bool get busy => _busy;