enqueueBanner static method

void enqueueBanner(
  1. BuildContext context,
  2. ContentBuilder content, {
  3. double? topPadding,
  4. Duration? duration = const Duration(seconds: 5),
})

Enqueues a banner to be displayed by the OverlayManager.

Banners are shown one by one in the order they are enqueued.

Implementation

static void enqueueBanner(
  BuildContext context,
  ContentBuilder content, {
  double? topPadding,
  Duration? duration = const Duration(seconds: 5),
}) => OverlayManager.enqueueBanner(
  context,
  content: content,
  topPadding: topPadding,
  duration: duration,
);