Sizes the column according to the intrinsic dimensions of all the cells in that column.
This is a very expensive way to size a column.
A flex value can be provided. If specified (and non-null), the column will participate in the distribution of remaining space once all the non-flexible columns have been sized.
- Inheritance
- Object
- TableColumnWidth
- IntrinsicColumnWidth
Constructors
- IntrinsicColumnWidth({double flex })
-
Creates a column width based on intrinsic sizing.
const
Properties
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
flex(
Iterable<RenderBox> cells) → double -
The flex factor to apply to the cell if there is any room left over when laying out the table. The remaining space is distributed to any columns with flex in proportion to their flex value (higher values get more space).
-
maxIntrinsicWidth(
Iterable<RenderBox> cells, double containerWidth) → double -
The ideal width that the column should have. This must be equal to or greater than the
minIntrinsicWidth
. The column might be bigger than this width, e.g. if the column is flexible or if the table's width ends up being forced to be bigger than the sum of all the maxIntrinsicWidth values. -
minIntrinsicWidth(
Iterable<RenderBox> cells, double containerWidth) → double -
The smallest width that the column can have.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited