SnapController constructor
const
SnapController(
- Widget uiChild,
- bool useCache,
- GlobalKey<
State< viewKey,StatefulWidget> > - GlobalKey<
State< boundKey,StatefulWidget> > - Offset constraintsMin,
- Offset constraintsMax,
- Offset flexibilityMin,
- Offset flexibilityMax, {
- Key? key,
- double customBoundWidth = 0,
- double customBoundHeight = 0,
- List<
SnapTarget> ? snapTargets, - double minSnapDistance = 0,
- bool animateSnap = true,
- bool useFlick = true,
- double flickSensitivity = 0.075,
- MoveCallback? onMove,
- DragCallback? onDragStart,
- DragCallback? onDragUpdate,
- DragCallback? onDragEnd,
- SnapCallback? onSnap,
Implementation
const SnapController(
this.uiChild,
this.useCache,
this.viewKey,
this.boundKey,
this.constraintsMin,
this.constraintsMax,
this.flexibilityMin,
this.flexibilityMax, {
Key? key,
this.customBoundWidth: 0,
this.customBoundHeight: 0,
this.snapTargets,
this.minSnapDistance = 0,
this.animateSnap: true,
this.useFlick: true,
this.flickSensitivity: 0.075,
this.onMove,
this.onDragStart,
this.onDragUpdate,
this.onDragEnd,
this.onSnap,
}) : super(key: key);