copyWith method
MatexCountryBlocState
copyWith({
- List<
MatexCountryMetadata> ? countries, - bool? isInitializing,
- bool? isInitialized,
override
Creates a copy of this state but with the given fields replaced with the new values. If a value is not provided, it defaults to the current value.
Implementation
@override
MatexCountryBlocState copyWith({
List<MatexCountryMetadata>? countries,
bool? isInitializing,
bool? isInitialized,
}) {
return MatexCountryBlocState(
countries: countries ?? this.countries,
isInitialized: isInitialized ?? this.isInitialized,
isInitializing: isInitializing ?? this.isInitializing,
);
}