getAnchoredAdaptiveBannerAdSize static method

Future<AdSize?> getAnchoredAdaptiveBannerAdSize(
  1. BuildContext context
)

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(),
  );
}