RainbowIndicatorConfig constructor
const
RainbowIndicatorConfig({})
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.''',
);