BarChartRodStackItem constructor

BarChartRodStackItem(
  1. double fromY,
  2. double toY,
  3. Color color, [
  4. BorderSide borderSide = Utils.defaultBorderSide,
])

Renders a section of Stacked Chart from fromY to toY with color for example if you want to have a Stacked Chart with three colors:

BarChartRodData(
  y: 9,
  color: Colors.grey,
  rodStackItems: [
    BarChartRodStackItem(0, 3, Colors.red),
    BarChartRodStackItem(3, 6, Colors.green),
    BarChartRodStackItem(6, 9, Colors.blue),
  ]
)

Implementation

BarChartRodStackItem(
  this.fromY,
  this.toY,
  this.color, [
  this.borderSide = Utils.defaultBorderSide,
]);