Ads constructor

Ads({
  1. String? trackingId,
  2. bool analyticsEnabled = false,
  3. String? bannerUnitId,
  4. String? screenUnitId,
  5. String? nativeUnitId,
  6. String? videoUnitId,
  7. String? factoryId,
  8. AdRequest? adRequest,
  9. List<String>? keywords,
  10. String? contentUrl,
  11. bool? childDirected,
  12. List<String>? testDevices,
  13. bool? nonPersonalizedAds,
  14. RequestConfiguration? requestConfiguration,
  15. bool? testing,
  16. MobileAdListener? listener,
  17. RewardListener? rewardListener,
  18. AdSize? size,
  19. double? anchorOffset,
  20. double? horizontalCenterOffset,
  21. AdErrorListener? errorListener,
})

Implementation

factory Ads({
  String? trackingId,
  bool analyticsEnabled = false,
  String? bannerUnitId,
  String? screenUnitId,
  String? nativeUnitId,
  String? videoUnitId,
  String? factoryId,
  AdRequest? adRequest,
  List<String>? keywords,
  String? contentUrl,
  bool? childDirected,
  List<String>? testDevices,
  bool? nonPersonalizedAds,
  RequestConfiguration? requestConfiguration,
  bool? testing,
  m.MobileAdListener? listener,
  m.RewardListener? rewardListener,
  AdSize? size,
  double? anchorOffset,
  double? horizontalCenterOffset,
  m.AdErrorListener? errorListener,
}) =>
    _this ??= Ads._(
      trackingId: trackingId,
      analyticsEnabled: analyticsEnabled,
      bannerUnitId: bannerUnitId,
      screenUnitId: screenUnitId,
      nativeUnitId: nativeUnitId,
      videoUnitId: videoUnitId,
      factoryId: factoryId,
      keywords: keywords,
      contentUrl: contentUrl,
      childDirected: childDirected,
      testDevices: testDevices,
      nonPersonalizedAds: nonPersonalizedAds,
      requestConfiguration: requestConfiguration,
      testing: testing,
      listener: listener,
      rewardListener: rewardListener,
      size: size,
      anchorOffset: anchorOffset,
      horizontalCenterOffset: horizontalCenterOffset,
      errorListener: errorListener,
    );