stackedWith method
Widget
stackedWith(
- List<
Widget> children, { - AlignmentGeometry alignment = Alignment.topLeft,
- StackFit fit = StackFit.loose,
- Clip clipBehavior = Clip.hardEdge,
Wraps the widget in a Stack with other children
alignment: stack alignment (default topLeft)fit: loose or expand
Implementation
Widget stackedWith(
List<Widget> children, {
AlignmentGeometry alignment = Alignment.topLeft,
StackFit fit = StackFit.loose,
Clip clipBehavior = Clip.hardEdge,
}) {
return Stack(
alignment: alignment,
fit: fit,
clipBehavior: clipBehavior,
children: [this, ...children],
);
}