onSuspend method

FutureOr<void> onSuspend()
inherited

Called when the module is being suspended.

Override this method to:

  • Pause background operations
  • Save temporary state
  • Release non-essential resources

Throws: Any exception to indicate suspension failure

Implementation

FutureOr<void> onSuspend() async {}