BetterInteractiveViewerBase constructor
BetterInteractiveViewerBase({
- Key? key,
- bool allowNonCoveringScreenZoom = true,
- PanAxis panAxis = PanAxis.free,
- double maxScale = 2.5,
- double minScale = 0.2,
- double interactionEndFrictionCoefficient = _kDrag,
- bool panEnabled = true,
- bool scaleEnabled = true,
- bool showScrollbars = true,
- bool noMouseDragScroll = true,
- double scaleFactor = kDefaultMouseScrollToScaleFactor,
- TransformationController? transformationController,
- bool doubleTapToZoom = true,
Implementation
BetterInteractiveViewerBase({
super.key,
this.allowNonCoveringScreenZoom = true,
this.panAxis = PanAxis.free,
this.maxScale = 2.5,
this.minScale = 0.2,
this.interactionEndFrictionCoefficient = _kDrag,
this.panEnabled = true,
this.scaleEnabled = true,
this.showScrollbars = true,
this.noMouseDragScroll = true,
this.scaleFactor = kDefaultMouseScrollToScaleFactor,
this.transformationController,
this.doubleTapToZoom = true,
}) : assert(minScale > 0),
assert(interactionEndFrictionCoefficient > 0),
assert(minScale.isFinite),
assert(maxScale > 0),
assert(!maxScale.isNaN),
assert(maxScale >= minScale);