checkPermissionList abstract method

Future<List<NotificationPermission>> checkPermissionList({
  1. String? channelKey,
  2. List<NotificationPermission> permissions = const [NotificationPermission.Badge, NotificationPermission.Alert, NotificationPermission.Sound, NotificationPermission.Vibration, NotificationPermission.Light],
})

Check each individual permission to send notifications and returns only the allowed permissions

Implementation

Future<List<NotificationPermission>> checkPermissionList(
    {String? channelKey,
    List<NotificationPermission> permissions = const [
      NotificationPermission.Badge,
      NotificationPermission.Alert,
      NotificationPermission.Sound,
      NotificationPermission.Vibration,
      NotificationPermission.Light
    ]});