customAction method

  1. @override
Future customAction(
  1. String name, [
  2. Map<String, dynamic>? extras
])
override

A mechanism to support app-specific actions.

Implementation

@override
Future<dynamic> customAction(String name,
    [Map<String, dynamic>? extras]) async {
  if (name == 'unregister') {
    unregister();
  } else {
    return super.customAction(name, extras);
  }
}