StackObject constructor

const StackObject({
  1. required BoxModel model,
  2. Key? key,
  3. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  4. TextDirection? textDirection,
  5. StackFit fit = StackFit.loose,
  6. Clip clipBehavior = Clip.hardEdge,
  7. 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

const StackObject({
  required this.model,
  super.key,
  this.alignment = AlignmentDirectional.topStart,
  this.textDirection,
  this.fit = StackFit.loose,
  this.clipBehavior = Clip.hardEdge,
  super.children,
});