DragTrack constructor

const DragTrack({
  1. DragTrackShape shape = DragTrackShape.line,
  2. String variable = '',
  3. double min = 0,
  4. double max = 1,
  5. double step = 0,
  6. double? defaultValue,
  7. DragTrackInput input = DragTrackInput.follow,
  8. double pixelsPerRange = 200,
  9. double x1 = 0,
  10. double y1 = 0,
  11. double x2 = 0,
  12. double y2 = -100,
  13. double startAngle = -135,
  14. double endAngle = 135,
  15. double pivotX = 0,
  16. double pivotY = 0,
  17. bool rotate = true,
  18. String? path,
  19. bool orientToPath = false,
  20. bool jumpOnTap = false,
  21. bool wheel = true,
  22. double? value,
  23. bool orientUpright = false,
  24. double detent = 0,
  25. double overscroll = 0,
  26. int settle = 0,
  27. AnimationCurve settleCurve = AnimationCurve.easeOutCubic,
  28. double settleStiffness = 380,
  29. double settleDamping = 20,
  30. double? parkedProgress,
  31. bool keyboard = true,
  32. double viewBoxWidth = 0,
  33. double viewBoxHeight = 0,
  34. bool relative = false,
  35. double? wheelStep,
  36. List<double> doubleTapValues = const [],
  37. double? keyStep,
  38. DragTrackHitArea hitArea = DragTrackHitArea.self,
  39. DragTrackUnits units = DragTrackUnits.pixels,
  40. double fineStep = 0,
  41. double finePixelsPerRange = 0,
  42. int fineHold = 380,
  43. String fineVariable = '',
  44. int snap = 0,
  45. AnimationCurve snapCurve = AnimationCurve.easeOutBack,
  46. bool write = true,
  47. bool endless = false,
  48. bool momentum = false,
  49. double friction = 2.6,
  50. bool smooth = false,
  51. double gain = 1,
})

Implementation

const DragTrack({
  this.shape = DragTrackShape.line,
  this.variable = '',
  this.min = 0,
  this.max = 1,
  this.step = 0,
  this.defaultValue,
  this.input = DragTrackInput.follow,
  this.pixelsPerRange = 200,
  this.x1 = 0,
  this.y1 = 0,
  this.x2 = 0,
  this.y2 = -100,
  this.startAngle = -135,
  this.endAngle = 135,
  this.pivotX = 0,
  this.pivotY = 0,
  this.rotate = true,
  this.path,
  this.orientToPath = false,
  this.jumpOnTap = false,
  this.wheel = true,
  this.value,
  this.orientUpright = false,
  this.detent = 0,
  this.overscroll = 0,
  this.settle = 0,
  this.settleCurve = AnimationCurve.easeOutCubic,
  this.settleStiffness = 380,
  this.settleDamping = 20,
  this.parkedProgress,
  this.keyboard = true,
  this.viewBoxWidth = 0,
  this.viewBoxHeight = 0,
  this.relative = false,
  this.wheelStep,
  this.doubleTapValues = const [],
  this.keyStep,
  this.hitArea = DragTrackHitArea.self,
  this.units = DragTrackUnits.pixels,
  this.fineStep = 0,
  this.finePixelsPerRange = 0,
  this.fineHold = 380,
  this.fineVariable = '',
  this.snap = 0,
  this.snapCurve = AnimationCurve.easeOutBack,
  this.write = true,
  this.endless = false,
  this.momentum = false,
  this.friction = 2.6,
  this.smooth = false,
  this.gain = 1,
});