copyWith method

IOSNotificationSettings copyWith({
  1. String? authorizationStatus,
  2. String? soundSetting,
  3. String? badgeSetting,
  4. String? notificationCenterSetting,
  5. String? lockScreenSetting,
  6. String? carPlaySetting,
  7. String? alertStyle,
  8. String? showPreviewSetting,
  9. String? criticalAlertSetting,
  10. bool? providesAppNotificationSettings,
  11. String? scheduledDeliverySetting,
  12. String? timeSensitiveSetting,
})

Implementation

IOSNotificationSettings copyWith(
    {String? authorizationStatus,
    String? soundSetting,
    String? badgeSetting,
    String? notificationCenterSetting,
    String? lockScreenSetting,
    String? carPlaySetting,
    String? alertStyle,
    String? showPreviewSetting,
    String? criticalAlertSetting,
    bool? providesAppNotificationSettings,
    String? scheduledDeliverySetting,
    String? timeSensitiveSetting}) {
  return IOSNotificationSettings(
      authorizationStatus: authorizationStatus ?? this.authorizationStatus,
      soundSetting: soundSetting ?? this.soundSetting,
      badgeSetting: badgeSetting ?? this.badgeSetting,
      notificationCenterSetting:
          notificationCenterSetting ?? this.notificationCenterSetting,
      lockScreenSetting: lockScreenSetting ?? this.lockScreenSetting,
      carPlaySetting: carPlaySetting ?? this.carPlaySetting,
      alertStyle: alertStyle ?? this.alertStyle,
      showPreviewSetting: showPreviewSetting ?? this.showPreviewSetting,
      criticalAlertSetting: criticalAlertSetting ?? this.criticalAlertSetting,
      providesAppNotificationSettings: providesAppNotificationSettings ??
          this.providesAppNotificationSettings,
      scheduledDeliverySetting:
          scheduledDeliverySetting ?? this.scheduledDeliverySetting,
      timeSensitiveSetting:
          timeSensitiveSetting ?? this.timeSensitiveSetting);
}