FitGridCellVisualSpec class
A chart painted into a cell, already reduced to geometry: fractions of the cell's content box, so the render layer needs nothing but the box to draw it and the spec compares cheaply.
- Annotations
Constructors
- FitGridCellVisualSpec.bar({required double from, required double to, bool negative = false, Color? color})
-
A bar spanning
fromtotoacross the cell — from the zero line to the value, so a negative value extends the other way.const - FitGridCellVisualSpec.progress({required double to, Color? color})
-
A progress track, filled to
to.const -
FitGridCellVisualSpec.sparkline({required List<
double> points, bool filled = false, Color? color}) -
A line through
points, each 0 at the bottom of the cell and 1 at the top, spaced evenly across it.const
Properties
- color → Color?
-
Null follows the theme's chart colour.
final
- filled → bool
-
final
- from → double
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind → FitGridVisualKind
-
final
- negative → bool
-
final
-
points
→ List<
double> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- to → double
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override