hasNotificationPermission method
Whether this app may post notifications (always true below API 33).
Implementation
@override
Future<bool> hasNotificationPermission() async =>
await methodChannel.invokeMethod<bool>('hasNotificationPermission') ??
false;