handlePluginShutdown method

Future<PluginShutdownResult> handlePluginShutdown(
  1. PluginShutdownParams parameters
)

Handle a 'plugin.shutdown' request. Subclasses can override this method to perform any required clean-up, but cannot prevent the plugin from shutting down.

Throw a RequestFailure if the request could not be handled.

Implementation

Future<PluginShutdownResult> handlePluginShutdown(
    PluginShutdownParams parameters) async {
  return PluginShutdownResult();
}