SnapController constructor

const SnapController(
  1. Widget uiChild,
  2. bool useCache,
  3. GlobalKey<State<StatefulWidget>> viewKey,
  4. GlobalKey<State<StatefulWidget>> boundKey,
  5. Offset constraintsMin,
  6. Offset constraintsMax,
  7. Offset flexibilityMin,
  8. Offset flexibilityMax, {
  9. Key? key,
  10. double customBoundWidth = 0,
  11. double customBoundHeight = 0,
  12. List<SnapTarget>? snapTargets,
  13. double minSnapDistance = 0,
  14. bool animateSnap = true,
  15. bool useFlick = true,
  16. double flickSensitivity = 0.075,
  17. MoveCallback? onMove,
  18. DragCallback? onDragStart,
  19. DragCallback? onDragUpdate,
  20. DragCallback? onDragEnd,
  21. 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);