onUnload method

  1. @protected
Future<Null> onUnload()

Custom logic to be executed during unload.

Called on unload if shouldUnload completes with true. This can be used for cleanup. Returns a future with no payload that completes when the module has finished unloading.

Implementation

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