onSuspend method
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 {}