TableColumnWidth class
Base class to describe how wide a column in a RenderTable should be.
To size a column to a specific number of pixels, use a FixedColumnWidth. This is the cheapest way to size a column.
Other algorithms that are relatively cheap include FlexColumnWidth, which distributes the space equally among the flexible columns, FractionColumnWidth, which sizes a column based on the size of the table's container.
- Implementers
- Annotations
- @immutable
Constructors
- TableColumnWidth()
-
Abstract const constructor. This constructor enables subclasses to provide
const constructors so that they can be used in const expressions.
const
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, 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.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited