StochasticIndicator constructor

StochasticIndicator({
  1. int kPeriod = 14,
  2. int kSmooth = 3,
  3. int dPeriod = 3,
  4. Color kColor = const Color(0xFF2962FF),
  5. Color dColor = const Color(0xFFFF6D00),
  6. double strokeWidth = 1.4,
})

Implementation

StochasticIndicator({
  this.kPeriod = 14,
  this.kSmooth = 3,
  this.dPeriod = 3,
  this.kColor = const Color(0xFF2962FF),
  this.dColor = const Color(0xFFFF6D00),
  this.strokeWidth = 1.4,
})  : assert(kPeriod > 0, 'kPeriod must be positive'),
      assert(kSmooth > 0, 'kSmooth must be positive'),
      assert(dPeriod > 0, 'dPeriod must be positive');