requestForNotifications static method

Future<void> requestForNotifications()

Makes a request to show notifications

Implementation

static Future<void> requestForNotifications() async {
  await Permission.notification.isDenied.then((value) {
    if (value) {
      Permission.notification.request();
    }
  });
}