computeSize abstract method
double
computeSize({
- required ParentLayout parent,
- required ChildLayout child,
- required LayoutHandle<
Layout> layoutHandle, - required LayoutAxis axis,
- required LayoutSize contentSize,
- required LayoutSize viewportSize,
Computes the actual size value for this unit.
The calculation considers the parent layout context, child properties, layout axis, content size, and viewport constraints to determine the final size.
Parameters:
parent
: The parent layout providing context and constraintschild
: The child element being sizedlayoutHandle
: Handle for layout operationsaxis
: The axis along which sizing is calculatedcontentSize
: The natural size of the contentviewportSize
: The available viewport size
Returns the computed size value.
Implementation
double computeSize({
required ParentLayout parent,
required ChildLayout child,
required LayoutHandle layoutHandle,
required LayoutAxis axis,
required LayoutSize contentSize,
required LayoutSize viewportSize,
});