Zoomable constructor
const
Zoomable({
- Key? key,
- required ZoomableController controller,
- required Rect boundary,
- double minZoomLevel = 1.0,
- double maxZoomLevel = 15.0,
- bool enablePinching = true,
- bool enablePanning = true,
- bool enableDoubleTapZooming = true,
- double frictionCoefficient = 0.005,
- Duration animationDuration = const Duration(milliseconds: 600),
- ZoomableUpdateCallback? onWillUpdate,
- ZoomableCompleteCallback? onComplete,
- Widget? child,
Creates a Zoomable.
Implementation
const Zoomable({
Key? key,
required this.controller,
required this.boundary,
this.minZoomLevel = 1.0,
this.maxZoomLevel = 15.0,
this.enablePinching = true,
this.enablePanning = true,
this.enableDoubleTapZooming = true,
this.frictionCoefficient = 0.005,
this.animationDuration = const Duration(milliseconds: 600),
this.onWillUpdate,
this.onComplete,
this.child,
}) : assert(minZoomLevel >= 1 && minZoomLevel <= maxZoomLevel),
assert(frictionCoefficient > 0.0),
super(key: key);