Overlay constructor

const Overlay({Key key, List<OverlayEntry> initialEntries: const [] })

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 WidgetsApp or the MaterialApp for the application.

Implementation

const Overlay({
  Key key,
  this.initialEntries = const <OverlayEntry>[]
}) : assert(initialEntries != null),
     super(key: key);