RainbowIndicatorConfig constructor

const RainbowIndicatorConfig({
  1. int period = 50,
  2. MovingAverageType movingAverageType = MovingAverageType.simple,
  3. String fieldType = 'close',
  4. int bandsCount = 10,
  5. List<LineStyle>? rainbowLineStyles,
  6. bool showLastIndicator = false,
  7. int number = 0,
})

Initializes

Implementation

const RainbowIndicatorConfig({
  int super.period = 50,
  MovingAverageType super.movingAverageType = MovingAverageType.simple,
  String super.fieldType = 'close',
  this.bandsCount = 10,
  this.rainbowLineStyles,
  super.showLastIndicator,
  super.number,
}) : assert(
       rainbowLineStyles == null || rainbowLineStyles.length == bandsCount,
       '''If you provide [rainbowLineStyles] it should have the same length as [bandsCount].
          since the bands count is $bandsCount. the same number of lineStyles should be provided.''',
     );