BetterInteractiveViewerBase constructor

BetterInteractiveViewerBase({
  1. Key? key,
  2. bool allowNonCoveringScreenZoom = true,
  3. PanAxis panAxis = PanAxis.free,
  4. double maxScale = 2.5,
  5. double minScale = 0.2,
  6. double interactionEndFrictionCoefficient = _kDrag,
  7. bool panEnabled = true,
  8. bool scaleEnabled = true,
  9. bool showScrollbars = true,
  10. bool noMouseDragScroll = true,
  11. double scaleFactor = kDefaultMouseScrollToScaleFactor,
  12. TransformationController? transformationController,
  13. 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);