Stack constructor Null safety
- {Key? key,
- AlignmentGeometry alignment = AlignmentDirectional.topStart,
- TextDirection? textDirection,
- StackFit fit = StackFit.loose,
- Clip clipBehavior = Clip.hardEdge,
- List<
Widget> children = const <Widget>[]}
Creates a stack layout widget.
By default, the non-positioned children of the stack are aligned by their top left corners.
Implementation
Stack({
super.key,
this.alignment = AlignmentDirectional.topStart,
this.textDirection,
this.fit = StackFit.loose,
this.clipBehavior = Clip.hardEdge,
super.children,
}) : assert(clipBehavior != null);