Overlay constructor

const Overlay(
  1. {Key? key,
  2. List<OverlayEntry> initialEntries = const <OverlayEntry>[],
  3. Clip clipBehavior = Clip.hardEdge}
)

Creates an overlay.

The initial entries will be inserted into the overlay when its associated OverlayState is initialized.

Rather than creating an overlay, consider using the overlay that is created by the Navigator in a WidgetsApp, CupertinoApp, or a MaterialApp for the application.

Implementation

const Overlay({
  super.key,
  this.initialEntries = const <OverlayEntry>[],
  this.clipBehavior = Clip.hardEdge,
});