setNotificationOn static method

Future<void> setNotificationOn()

Default of notification is set to On, if you have set it off, you can revert it using this function.

Implementation

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