Snappable constructor

const Snappable({
  1. Key? key,
  2. required Widget child,
  3. Offset offset = const Offset(64, -32),
  4. Duration duration = const Duration(milliseconds: 5000),
  5. Offset randomDislocationOffset = const Offset(64, 32),
  6. int numberOfBuckets = 16,
  7. bool snapOnTap = false,
  8. VoidCallback? onSnapped,
})

Implementation

const Snappable({
  Key? key,
  required this.child,
  this.offset = const Offset(64, -32),
  this.duration = const Duration(milliseconds: 5000),
  this.randomDislocationOffset = const Offset(64, 32),
  this.numberOfBuckets = 16,
  this.snapOnTap = false,
  this.onSnapped,
}) : super(key: key);