setNotificationOff static method

Future<void> setNotificationOff()

If this function is called, notification will not be shown.

Implementation

static Future<void> setNotificationOff() async {
  if(!Platform.isAndroid) return;
  await _channel.invokeMethod("Pushe.disableNotifications");
}