Box constructor
Box({
- required LayoutTextDirection textDirection,
- required LayoutOverflow horizontalOverflow,
- required LayoutOverflow verticalOverflow,
- required Layout boxLayout,
- LayoutData? layoutData,
- LayoutTextBaseline? textBaseline,
- double scrollOffsetX = 0.0,
- double scrollOffsetY = 0.0,
- List<
Box> ? children, - Object? debugKey,
Implementation
Box({
required this.textDirection,
required this.horizontalOverflow,
required this.verticalOverflow,
required this.boxLayout,
LayoutData? layoutData,
this.textBaseline,
this.scrollOffsetX = 0.0,
this.scrollOffsetY = 0.0,
List<Box>? children,
this.debugKey,
}) {
parentData.layoutData = layoutData;
if (children != null) {
_attachChildren(children);
} else {
_children = [];
_childCount = 0;
_firstChild = null;
_lastChild = null;
}
}