copyWith method

  1. @override
FastInterstitialAdBlocState copyWith({
  1. bool? isAdDisplayable,
  2. bool? isInitializing,
  3. bool? isInitialized,
  4. String? countryCode,
  5. FastAdInfo? adInfo,
  6. bool? isAdLoading,
  7. bool? isAdLoaded,
})
override

Creates a copy of this TModel but with the given fields replaced with the new values.

For example:

var myModel2 = myModel1.copyWith(age: 42);

Implementation

@override
FastInterstitialAdBlocState copyWith({
  bool? isAdDisplayable,
  bool? isInitializing,
  bool? isInitialized,
  String? countryCode,
  FastAdInfo? adInfo,
  bool? isAdLoading,
  bool? isAdLoaded,
}) {
  return FastInterstitialAdBlocState(
    isAdDisplayable: isAdDisplayable ?? this.isAdDisplayable,
    isInitializing: isInitializing ?? this.isInitializing,
    isInitialized: isInitialized ?? this.isInitialized,
    isAdLoading: isAdLoading ?? this.isAdLoading,
    countryCode: countryCode ?? this.countryCode,
    isAdLoaded: isAdLoaded ?? this.isAdLoaded,
    adInfo: adInfo ?? this.adInfo,
  );
}