LayoutHandle<T extends Layout> class
abstract
Handle for performing layout operations with a specific algorithm.
LayoutHandle manages the execution of a layout algorithm on a parent container. It provides methods for layout calculation, positioning, and intrinsic size computation. Each layout algorithm has its own handle implementation.
- Implementers
Constructors
- LayoutHandle.new(T layout, ParentLayout parent)
- Creates a layout handle for the given layout and parent.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- layout → T
-
The layout algorithm this handle implements.
final
- parent → ParentLayout
-
The parent container this handle is laying out.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
computeMaxIntrinsicHeight(
double width) → double - Computes the maximum intrinsic height at the given width.
-
computeMaxIntrinsicWidth(
double height) → double - Computes the maximum intrinsic width at the given height.
-
computeMinIntrinsicHeight(
double width) → double - Computes the minimum intrinsic height at the given width.
-
computeMinIntrinsicWidth(
double height) → double - Computes the minimum intrinsic width at the given height.
-
indexOfNearestChildAtOffset(
LayoutOffset offset) → int - Finds the index of the child at the given offset. Returns -1 if no child is found at the offset.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
performLayout(
LayoutConstraints constraints, [bool dry = false]) → LayoutSize - Performs the layout calculation for all children.
-
performPositioning(
LayoutSize viewportSize, LayoutSize contentSize) → LayoutRect - Calculates the positioning rectangle for the content within the viewport.
-
setupCache(
) → ChildLayoutCache - Creates a cache for storing layout computation results.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited