GestureZoom constructor

const GestureZoom({
  1. Key? key,
  2. double maxScale = 5.0,
  3. double doubleTapScale = 2.0,
  4. required Widget child,
  5. VoidCallback? onPressed,
  6. Duration duration = const Duration(milliseconds: 300),
})

Implementation

const GestureZoom({
  super.key,
  this.maxScale = 5.0,
  this.doubleTapScale = 2.0,
  required this.child,
  this.onPressed,
  this.duration = const Duration(milliseconds: 300),
})  : assert(maxScale >= 1.0),
      assert(doubleTapScale >= 1.0 && doubleTapScale <= maxScale);