onSuspend method

  1. @protected
Future<Null> onSuspend()

Custom logic to be executed during suspend.

Server connections can be dropped and large data structures unloaded here. Nothing should be done here that cannot be undone in onResume.

Implementation

@protected
Future<Null> onSuspend() async {}