cancelPushNotificationForMessage static method

Future<void> cancelPushNotificationForMessage(
  1. MBMessage message
)

Cancels a push notification for the message passed. @param message The message for which cancel the push.

Implementation

static Future<void> cancelPushNotificationForMessage(
    MBMessage message) async {
  String identifier = _notificationIdentifierForMessage(message);
  await MBAutomationFlutterPlugin.cancelLocalNotification(id: identifier);
  await _unsetMessageShowDate(message);
  await _unsetMessageShowed(message);
}