copyWith method
FastAppSettingsBlocState
copyWith({
- bool? use24HourFormat,
- bool? isInitializing,
- String? languageCode,
- ValueGetter<
String?> ? countryCode, - bool? isInitialized,
- String? theme,
- String? primaryCurrencyCode,
- String? secondaryCurrencyCode,
- 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,
);