Constrained class final

A layout that splits an area based on the provided constraints.

The area is split into rows or columns based on the provided axis.

Implemented types

Constructors

Constrained(List<Constraint> constraints, {required Axis axis})
Creates a layout that splits an area based on the provided constraints.
const
Constrained.horizontal(List<Constraint> constraints)
Creates a layout that splits an area horizontally.
factory
Constrained.vertical(List<Constraint> constraints)
Creates a layout that splits an area vertically.
factory

Properties

axis Axis
The axis along which the area is split.
final
constraints List<Constraint>
The constraints that determine the size of each split.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
split(Rect area) List<Rect>
Splits the given area into multiple sub-areas.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override