copyWith method

LocalisationSettings copyWith({
  1. String? isoLanguageCode,
  2. String? isoCurrencyCode,
  3. String? isoCountryCode,
  4. String? isoTimezone,
  5. String? dateFormat,
  6. String? timeFormat,
})

Implementation

LocalisationSettings copyWith({
  String? isoLanguageCode,
  String? isoCurrencyCode,
  String? isoCountryCode,
  String? isoTimezone,
  String? dateFormat,
  String? timeFormat,
}) {
  return LocalisationSettings(
    isoLanguageCode: isoLanguageCode ?? this.isoLanguageCode,
    isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
    isoCountryCode: isoCountryCode ?? this.isoCountryCode,
    isoTimezone: isoTimezone ?? this.isoTimezone,
    dateFormat: dateFormat ?? this.dateFormat,
    timeFormat: timeFormat ?? this.timeFormat,
  );
}