cancelByThread method

  1. @override
Future<void> cancelByThread(
  1. String threadId
)
override

Withdraws every posted notification sharing threadId.

Implementation

@override
Future<void> cancelByThread(String threadId) async {
  try {
    await _channel.invokeMethod('cancelByThread', {'threadId': threadId});
  } on PlatformException catch (e) {
    _log.w('cancelByThread failed: ${e.message}');
  } on MissingPluginException {
    return;
  }
}