destroy method

  1. @override
Future<void> destroy({
  1. required String matchingKey,
  2. required String? bucketingKey,
})

Implementation

@override
Future<void> destroy(
    {required String matchingKey, required String? bucketingKey}) async {
  var handlerKey = _buildMapKey(matchingKey, bucketingKey);
  _handlers[handlerKey]?.destroy();
  _handlers.remove(handlerKey);

  return await methodChannel.invokeMethod(
      'destroy', _buildParameters(matchingKey, bucketingKey));
}