NotificationPermission constructor

const NotificationPermission({
  1. required NotificationAuthorization status,
  2. bool alert = false,
  3. bool badge = false,
  4. bool sound = false,
  5. bool announcement = false,
  6. bool carPlay = false,
  7. bool criticalAlert = false,
  8. bool providesAppNotificationSettings = false,
  9. bool timeSensitive = false,
})

Creates a permission snapshot.

Implementation

const NotificationPermission({
  required this.status,
  this.alert = false,
  this.badge = false,
  this.sound = false,
  this.announcement = false,
  this.carPlay = false,
  this.criticalAlert = false,
  this.providesAppNotificationSettings = false,
  this.timeSensitive = false,
});