LayoutEngine class abstract
A standalone set of layout algorithms, operating on LayoutItem items.
- Implementers
Constructors
- LayoutEngine()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
box(
{required Iterable< LayoutItem> items, required LayoutConstraints constraints, required double? targetWidth, required double? targetHeight, required EdgeInsets padding, required Anchor? alignment}) → Vector2 -
Sizes a region to
targetWidth/targetHeight- or to its largest item pluspaddingwhere either is null - then places every item inside it atalignment. -
flex(
{required Axis direction, required LayoutConstraints constraints, required Iterable< LayoutItem> items, required MainAxisAlignment mainAxisAlignment, required CrossAxisAlignment crossAxisAlignment, required MainAxisSize mainAxisSize, required double spacing}) → Vector2 - Measures non-flex items, distributes remaining main-axis space to flex items, then positions everyone in exactly three passes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited