getAnchoredAdaptiveBannerAdSize static method
Calculates the anchored adaptive banner size for the current screen width.
Implementation
static Future<AdSize?> getAnchoredAdaptiveBannerAdSize(BuildContext context) async {
return AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(
MediaQuery.of(context).size.width.truncate(),
);
}