FFAdMobSettings constructor

FFAdMobSettings({
  1. String? iosAppKey,
  2. String? androidAppKey,
  3. FFEditMetadata? editMetadata,
  4. bool? showConsentAtLaunch,
  5. bool? showTestAds,
  6. bool? tagForChildDirectedTreatment,
  7. bool? tagForUnderAgeOfConsent,
  8. FFAdMobSettings_MaxAdContentRating? maxAdContentRating,
  9. bool? enabled,
})

Implementation

factory FFAdMobSettings({
  $core.String? iosAppKey,
  $core.String? androidAppKey,
  FFEditMetadata? editMetadata,
  $core.bool? showConsentAtLaunch,
  $core.bool? showTestAds,
  $core.bool? tagForChildDirectedTreatment,
  $core.bool? tagForUnderAgeOfConsent,
  FFAdMobSettings_MaxAdContentRating? maxAdContentRating,
  $core.bool? enabled,
}) {
  final result = create();
  if (iosAppKey != null) result.iosAppKey = iosAppKey;
  if (androidAppKey != null) result.androidAppKey = androidAppKey;
  if (editMetadata != null) result.editMetadata = editMetadata;
  if (showConsentAtLaunch != null)
    result.showConsentAtLaunch = showConsentAtLaunch;
  if (showTestAds != null) result.showTestAds = showTestAds;
  if (tagForChildDirectedTreatment != null)
    result.tagForChildDirectedTreatment = tagForChildDirectedTreatment;
  if (tagForUnderAgeOfConsent != null)
    result.tagForUnderAgeOfConsent = tagForUnderAgeOfConsent;
  if (maxAdContentRating != null)
    result.maxAdContentRating = maxAdContentRating;
  if (enabled != null) result.enabled = enabled;
  return result;
}