OverlayBuilder constructor

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

OverlayBuilder constructor is used to create a new widget to handle the overlay widget based on its type.

Implementation

const OverlayBuilder({
  Key? key,
  required this.overlayChild,
  required this.child,
  this.initialShow = false,
  this.maintainState = false,
  this.opaque = false,
  this.type = OverlayType.positioned,
  this.alignment = OverlayAlignment.bottomCenter,
  this.verticalSpacing = .0,
  this.horizontalSpacing = .0,
}) : super(key: key);