Chart constructor

Chart(
  1. List<CandleModel> candles, {
  2. Offset? mousePointer,
  3. double lineWidth = 1.0,
  4. bool enableGridLines = false,
  5. Color gridLineColor = Colors.grey,
  6. int gridLineAmount = 6,
  7. double gridLineWidth = 0.5,
  8. int? showingItem = 0,
  9. Color gridLineLabelColor = Colors.grey,
  10. int? scale = 10,
  11. String labelPrefix = "\$",
  12. Color increaseColor = Colors.green,
  13. Color decreaseColor = Colors.red,
})

Implementation

Chart(this.candles,
    {this.mousePointer,
    this.lineWidth = 1.0,
    this.enableGridLines = false,
    this.gridLineColor = Colors.grey,
    this.gridLineAmount = 6,
    this.gridLineWidth = 0.5,
    this.showingItem = 0,
    this.gridLineLabelColor = Colors.grey,
    this.scale = 10,
    this.labelPrefix = "\$",
    this.increaseColor = Colors.green,
    this.decreaseColor = Colors.red});