LayoutEngine constructor
LayoutEngine({
- required ComponentInstance rootInstance,
- required List<
ComponentInstance> children, - required Axis direction,
- required Rect bounds,
- int childGap = 0,
Creates a layout engine with the given configuration.
Parameters:
rootInstance
: The root component in the layout hierarchychildren
: Direct children of the root instance to be laid outdirection
: Layout direction for arranging children (horizontal/vertical)bounds
: The total available area for layoutchildGap
: Space between children in the layout direction, defaults to 0
Implementation
LayoutEngine({
required this.rootInstance,
required this.children,
required this.direction,
required this.bounds,
this.childGap = 0,
});