MAEnvIndicatorConfig constructor

const MAEnvIndicatorConfig({
  1. int period = 50,
  2. MovingAverageType movingAverageType = MovingAverageType.simple,
  3. String fieldType = 'close',
  4. double shift = 5,
  5. ShiftType shiftType = ShiftType.percent,
  6. LineStyle upperLineStyle = const LineStyle(color: Colors.green),
  7. LineStyle middleLineStyle = const LineStyle(color: Colors.blue),
  8. LineStyle lowerLineStyle = const LineStyle(color: Colors.red),
  9. Color fillColor = Colors.white12,
  10. bool showChannelFill = true,
  11. bool showLastIndicator = false,
  12. int number = 0,
})

Initializes

Implementation

const MAEnvIndicatorConfig({
  int super.period = 50,
  MovingAverageType super.movingAverageType = MovingAverageType.simple,
  String super.fieldType = 'close',
  this.shift = 5,
  this.shiftType = ShiftType.percent,
  this.upperLineStyle = const LineStyle(color: Colors.green),
  this.middleLineStyle = const LineStyle(color: Colors.blue),
  this.lowerLineStyle = const LineStyle(color: Colors.red),
  this.fillColor = Colors.white12,
  this.showChannelFill = true,
  super.showLastIndicator,
  super.number,
});