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? showPreviewsSetting,
  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? showPreviewsSetting,
    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,
      showPreviewsSetting: showPreviewsSetting ?? this.showPreviewsSetting,
      criticalAlertSetting: criticalAlertSetting ?? this.criticalAlertSetting,
      providesAppNotificationSettings: providesAppNotificationSettings ??
          this.providesAppNotificationSettings,
      scheduledDeliverySetting:
          scheduledDeliverySetting ?? this.scheduledDeliverySetting,
      timeSensitiveSetting:
          timeSensitiveSetting ?? this.timeSensitiveSetting);
}