isNotificationAllowed method

  1. @override
Future<bool> isNotificationAllowed()
override

Check if the notifications are globally permitted

Implementation

@override
Future<bool> isNotificationAllowed() async {
  final bool isAllowed = await methodChannel
      .invokeMethod(CHANNEL_METHOD_IS_NOTIFICATION_ALLOWED);
  return isAllowed;
}