set method

Future<bool> set({
  1. String? adUnitId,
  2. String? factoryId,
  3. AdRequest? targetInfo,
  4. List<String>? keywords,
  5. String? contentUrl,
  6. bool? childDirected,
  7. List<String>? testDevices,
  8. bool? nonPersonalizedAds,
  9. bool? testing,
  10. AdSize? size,
  11. double? anchorOffset,
  12. double? horizontalCenterOffset,
  13. AdErrorListener? errorListener,
})

Set options to the Native Ad.

Implementation

Future<bool> set({
  String? adUnitId,
  String? factoryId,
  AdRequest? targetInfo,
  List<String>? keywords,
  String? contentUrl,
  bool? childDirected,
  List<String>? testDevices,
  bool? nonPersonalizedAds,
  bool? testing,
  AdSize? size,
  double? anchorOffset,
  double? horizontalCenterOffset,
//    AnchorType anchorType,
  m.AdErrorListener? errorListener,
}) {
  // Add this listener to the Error Listeners.
  if (errorListener != null) {
    m.eventErrorListeners.add(errorListener);
  }
  return _native!.set(
    adUnitId: adUnitId,
    factoryId: factoryId,
    targetInfo: targetInfo,
    keywords: keywords,
    contentUrl: contentUrl,
    childDirected: childDirected,
    testDevices: testDevices,
    nonPersonalizedAds: nonPersonalizedAds,
    testing: testing,
    anchorOffset: anchorOffset,
    horizontalCenterOffset: horizontalCenterOffset,
//     anchorType: anchorType,
    errorListener: errorListener,
  );
}