ChartPanZoomScope constructor

const ChartPanZoomScope({
  1. Key? key,
  2. required Widget child,
  3. double minScale = 1.0,
  4. double maxScale = 5.0,
  5. PanAxis panAxis = PanAxis.free,
  6. EdgeInsets boundaryMargin = EdgeInsets.zero,
  7. bool constrained = true,
  8. TransformationController? controller,
  9. bool showControls = false,
  10. AlignmentGeometry controlsAlignment = Alignment.bottomRight,
  11. EdgeInsetsGeometry controlsPadding = const EdgeInsets.all(8),
  12. double zoomStep = 1.5,
  13. bool hapticFeedback = true,
  14. ValueChanged<ScaleStartDetails>? onInteractionStart,
  15. ValueChanged<ScaleEndDetails>? onInteractionEnd,
})

Implementation

const ChartPanZoomScope({
  super.key,
  required this.child,
  this.minScale = 1.0,
  this.maxScale = 5.0,
  this.panAxis = PanAxis.free,
  this.boundaryMargin = EdgeInsets.zero,
  this.constrained = true,
  this.controller,
  this.showControls = false,
  this.controlsAlignment = Alignment.bottomRight,
  this.controlsPadding = const EdgeInsets.all(8),
  this.zoomStep = 1.5,
  this.hapticFeedback = true,
  this.onInteractionStart,
  this.onInteractionEnd,
}) : assert(minScale > 0, 'minScale must be > 0'),
     assert(maxScale >= minScale, 'maxScale must be >= minScale'),
     assert(zoomStep > 1.0, 'zoomStep must be > 1.0');