copyWith method

  1. @override
FastAppSettingsBlocState copyWith({
  1. bool? use24HourFormat,
  2. bool? isInitializing,
  3. String? languageCode,
  4. ValueGetter<String?>? countryCode,
  5. bool? isInitialized,
  6. String? theme,
  7. String? primaryCurrencyCode,
  8. String? secondaryCurrencyCode,
  9. bool? saveEntry,
})
override

Creates a new FastAppSettingsBlocState instance with updated properties.

If a parameter is not provided, the corresponding property of the current instance is used instead.

Implementation

@override
FastAppSettingsBlocState copyWith({
  bool? use24HourFormat,
  bool? isInitializing,
  String? languageCode,
  ValueGetter<String?>? countryCode,
  bool? isInitialized,
  String? theme,
  String? primaryCurrencyCode,
  String? secondaryCurrencyCode,
  bool? saveEntry,
}) =>
    FastAppSettingsBlocState(
      isInitializing: isInitializing ?? this.isInitializing,
      isInitialized: isInitialized ?? this.isInitialized,
      languageCode: languageCode ?? this.languageCode,
      countryCode: countryCode != null ? countryCode() : this.countryCode,
      theme: theme ?? this.theme,
      use24HourFormat: use24HourFormat ?? this.use24HourFormat,
      primaryCurrencyCode: primaryCurrencyCode ?? this.primaryCurrencyCode,
      secondaryCurrencyCode:
          secondaryCurrencyCode ?? this.secondaryCurrencyCode,
      saveEntry: saveEntry ?? this.saveEntry,
    );