AdUnitWidget constructor

AdUnitWidget({
  1. Key? key,
  2. required AdUnitConfiguration configuration,
  3. @visibleForTesting String? adClient,
})

Constructs AdUnitWidget

Implementation

AdUnitWidget({
  super.key,
  required AdUnitConfiguration configuration,
  @visibleForTesting String? adClient,
})  : _adClient = adClient ?? adSense.adClient,
      _adUnitConfiguration = configuration {
  assert(_adClient != null,
      'Attempted to render an AdUnitWidget before calling adSense.initialize');
}