Range constructor

const Range({
  1. Key? id,
  2. required RangeState state,
  3. num min = 0,
  4. num max = 100,
  5. num step = 1,
  6. num? pageStep,
  7. void onChanged(
    1. num low,
    2. num high
    )?,
  8. String trackChar = '─',
  9. String fillChar = '━',
  10. String handleChar = '○',
  11. String activeHandleChar = '●',
  12. Style? trackStyle,
  13. Style? fillStyle,
  14. Style? handleStyle,
  15. Style? activeHandleStyle,
  16. bool showValues = true,
  17. String formatValue(
    1. num value
    )?,
})

Implementation

const Range({
  Key? id,
  required this.state,
  this.min = 0,
  this.max = 100,
  this.step = 1,
  this.pageStep,
  this.onChanged,
  this.trackChar = '─',
  this.fillChar = '━',
  this.handleChar = '○',
  this.activeHandleChar = '●',
  this.trackStyle,
  this.fillStyle,
  this.handleStyle,
  this.activeHandleStyle,
  this.showValues = true,
  this.formatValue,
})  : _id = id,
      assert(min < max, 'Range min must be < max'),
      assert(step > 0, 'Range step must be > 0');