cancel method
Cancel/remove the notification with the specified id.
This applies to notifications that have been scheduled and those that have already been presented.
The tag
parameter specifies the Android tag. If it is provided,
then the notification that matches both the id and the tag will
be canceled. tag
has no effect on other platforms.
Implementation
@override
Future<void> cancel(int id, {String? tag}) async {
validateId(id);
return _channel.invokeMethod('cancel', <String, Object?>{
'id': id,
'tag': tag,
});
}