FitGridCellVisual<T> class
sealed
A small chart painted into each cell of a column — a data bar, a progress track, a sparkline.
Painted by the same pass that draws the text, not built: a column of ten thousand sparklines costs what a column of ten thousand words does, which is the point of painting a grid in the first place.
The column's value still says what the cell is — for search, sort,
copy, export and screen readers — so give it the number the chart shows.
- Implementers
- Annotations
Constructors
- FitGridCellVisual.bar(num? valueOf(T row), {num? min, num? max, Color? color, Color? negativeColor, bool showText})
-
A horizontal bar proportional to the value, drawn behind the text.
constfactory
- FitGridCellVisual.progress(double? fractionOf(T row), {Color? color, bool showText})
-
A track filled to a fraction between 0 and 1.
constfactory
-
FitGridCellVisual.sparkline(List<
num> valuesOf(T row), {Color? color, bool filled}) -
A line through a series of values, scaled to the cell. The text is not
painted — there is no room beside a chart — but it is still what the
cell copies as and what a screen reader says.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- needsRange → bool
-
Whether the chart needs the column's data range to be drawn.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showText → bool
-
Whether the column's text is painted over the chart.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rangeValueOf(
T row) → num? - The value this row contributes to the data range, if any.
-
resolve(
T row, (num, num)? range) → FitGridCellVisualSpec? - The painted geometry for a row, given the column's data range.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited