OverlayWidget constructor

const OverlayWidget({
  1. Key? key,
  2. required Widget overlayChild,
  3. required Widget child,
  4. bool initialShow = false,
  5. bool maintainState = false,
  6. bool opaque = false,
  7. OverlayAlignment alignment = OverlayAlignment.bottomCenter,
  8. double verticalSpacing = 0.0,
  9. double horizontalSpacing = 0.0,
})

OverlayWidget constructor is used to create a new widget to handle the overlay widget that overlays its child.

Implementation

const OverlayWidget({
  Key? key,
  required this.overlayChild,
  required this.child,
  this.initialShow = false,
  this.maintainState = false,
  this.opaque = false,
  this.alignment = OverlayAlignment.bottomCenter,
  this.verticalSpacing = 0.0,
  this.horizontalSpacing = 0.0,
})  : _overlayKey = key,
      super(key: null);