Sizes the column such that it is the size that is the minimum of two column width specifications.
For example, to have a column be 10% of the container width but never bigger than 100px, you could use:
const MinColumnWidth(const FixedColumnWidth(100.0), FractionColumnWidth(0.1))
Both specifications are evaluated, so if either specification is expensive, so is this.
- Inheritance
- Object
- TableColumnWidth
- MinColumnWidth
Constructors
- MinColumnWidth(TableColumnWidth a, TableColumnWidth b)
-
Creates a column width that is the minimum of two other column widths.
const
Properties
- a → TableColumnWidth
-
An upper bound for the width of this column.
read-only - b → TableColumnWidth
-
Another upper bound for the width of this column.
read-only - 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.
-
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited