copyWith method

  1. @override
MatexCountryBlocState copyWith({
  1. List<MatexCountryMetadata>? countries,
  2. bool? isInitializing,
  3. 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,
  );
}