copyWith method
FastInterstitialAdBlocState
copyWith({
- bool? isAdDisplayable,
- bool? isInitializing,
- bool? isInitialized,
- String? countryCode,
- FastAdInfo? adInfo,
- bool? isAdLoading,
- 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,
);
}