Ads constructor
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,
- MobileAdListener? listener,
- RewardListener? rewardListener,
- AdSize? size,
- double? anchorOffset,
- double? horizontalCenterOffset,
- 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,
);