hasNotificationPermission method

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

Check if notification permission is granted

Implementation

@override
Future<bool> hasNotificationPermission() async {
  final hasPermission = await _methodChannel.invokeMethod<bool>('hasNotificationPermission');
  return hasPermission ?? false;
}