LinearAdSlot constructor

LinearAdSlot({
  1. required String slotId,
  2. required int totalDuration,
  3. required VastRequestOptions requestOptions,
  4. int? width,
  5. int? height,
  6. Orientation orientation = Orientation.PORTRAIT,
  7. int? maxAdPods,
  8. CreativeMatchStrategy? creativeMatchStrategy,
  9. bool allowMobileTraffic = false,
})

Implementation

LinearAdSlot({
  required String slotId,
  required int totalDuration,
  required VastRequestOptions requestOptions,
  int? width,
  int? height,
  Orientation orientation = Orientation.PORTRAIT,
  int? maxAdPods,
  CreativeMatchStrategy? creativeMatchStrategy,
  bool allowMobileTraffic = false,
}) : super(
        slotId: slotId,
        totalDuration: totalDuration,
        width: width,
        height: height,
        requestOptions: requestOptions,
        orientation: orientation,
        maxAdPods: maxAdPods,
        creativeMatchStrategy: creativeMatchStrategy,
        allowMobileTraffic: allowMobileTraffic,
      );