description property

String get description

Gets a user-friendly description of the permission status.

Implementation

String get description {
  switch (this) {
    case PermissionStatus.granted:
      return 'All notification permissions are granted';
    case PermissionStatus.denied:
      return 'Notification permissions are denied';
    case PermissionStatus.permanentlyDenied:
      return 'Notification permissions are permanently denied. '
          'Please enable them in app settings.';
    case PermissionStatus.partiallyGranted:
      return 'Some notification permissions are granted. '
          'Full functionality may not be available.';
    case PermissionStatus.unknown:
      return 'Unable to determine notification permission status';
  }
}