AdUnitWidget constructor
AdUnitWidget({
- Key? key,
- required AdUnitConfiguration configuration,
- @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');
}