isAllowed static method

Future<bool> isAllowed()

True when notifications can be shown. if (!await UNotification.isAllowed()) UNotification.openSettings()

Implementation

static Future<bool> isAllowed() async => (await permission()).isGranted;