ScreenOverlayWidget constructor

ScreenOverlayWidget({
  1. Key? key,
  2. bool? show,
  3. AlignmentGeometry? alignment = AlignmentDirectional.topStart,
  4. TextDirection? textDirection,
  5. StackFit? fit = StackFit.loose,
  6. Clip? clipBehavior = Clip.hardEdge,
})

All are optional except the child widget.

Implementation

ScreenOverlayWidget({
  super.key,
  this.show,
  this.alignment = AlignmentDirectional.topStart,
  this.textDirection,
  this.fit = StackFit.loose,
  this.clipBehavior = Clip.hardEdge,
}) : state = _ScreenOverlayState() {
  state.showOverlay = show ?? true;
}