showAdBasedOnScreen static method

void showAdBasedOnScreen(
  1. BuildContext context, {
  2. AdCallbacks? callbacks,
})

Shows the next ad in the rotation configured for the current route.

Implementation

static void showAdBasedOnScreen(
  BuildContext context, {
  AdCallbacks? callbacks,
}) {
  _showForRoute(RouteMethods.currentRoute(context), callbacks);
}