OverlayEntry constructor

OverlayEntry({
  1. required WidgetBuilder builder,
  2. bool opaque = false,
  3. bool maintainState = false,
  4. bool canSizeOverlay = false,
})

Creates an overlay entry.

To insert the entry into an Overlay, first find the overlay using Overlay.of and then call OverlayState.insert. To remove the entry, call remove on the overlay entry itself.

Implementation

OverlayEntry({
  required this.builder,
  bool opaque = false,
  bool maintainState = false,
  this.canSizeOverlay = false,
}) : _opaque = opaque,
     _maintainState = maintainState {
  if (kFlutterMemoryAllocationsEnabled) {
    _maybeDispatchObjectCreation();
  }
}