OverlayBuilder constructor Null safety
- {Key? key,
- required Widget overlayChild,
- required Widget child,
- bool initialShow = false,
- bool maintainState = false,
- bool opaque = false,
- OverlayType type = OverlayType.positioned,
- OverlayAlignment alignment = OverlayAlignment.bottomCenter,
- double verticalSpacing = .0,
- 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);