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