FitGridCellVisualSpec.bar constructor

const FitGridCellVisualSpec.bar({
  1. required double from,
  2. required double to,
  3. bool negative = false,
  4. Color? color,
})

A bar spanning from to to across the cell — from the zero line to the value, so a negative value extends the other way.

Implementation

const FitGridCellVisualSpec.bar({
  required this.from,
  required this.to,
  this.negative = false,
  this.color,
}) : kind = FitGridVisualKind.bar,
     points = const <double>[],
     filled = false;