setPushNotificationsEnabled static method

Future setPushNotificationsEnabled(
  1. bool enabled
)

Enable or disable receiving Push Notifications. enabled Enable or disable Push Notifications.

Implementation

static Future setPushNotificationsEnabled(bool enabled) {
  return NativeBridge.async('Notifications.setEnabled', jsonEncode(enabled));
}