JsonInteractiveViewerBuilderModel constructor

const JsonInteractiveViewerBuilderModel(
  1. Map<String, dynamic> args, {
  2. Alignment? alignment,
  3. EdgeInsets boundaryMargin = EdgeInsets.zero,
  4. Clip clipBehavior = Clip.hardEdge,
  5. bool constrained = true,
  6. dynamic interactionEndFrictionCoefficient = 0.0000135,
  7. double maxScale = 2.5,
  8. double minScale = 0.8,
  9. void onInteractionEnd(
    1. ScaleEndDetails
    )?,
  10. void onInteractionStart(
    1. ScaleStartDetails
    )?,
  11. void onInteractionUpdate(
    1. ScaleUpdateDetails
    )?,
  12. PanAxis panAxis = PanAxis.free,
  13. bool panEnabled = true,
  14. bool scaleEnabled = true,
  15. double scaleFactor = kDefaultMouseScrollToScaleFactor,
  16. bool trackpadScrollCausesScale = false,
  17. TransformationController? transformationController,
  18. required JsonWidgetData child,
})

Implementation

const JsonInteractiveViewerBuilderModel(
  super.args, {
  this.alignment,
  this.boundaryMargin = EdgeInsets.zero,
  this.clipBehavior = Clip.hardEdge,
  this.constrained = true,
  this.interactionEndFrictionCoefficient = 0.0000135,
  this.maxScale = 2.5,
  this.minScale = 0.8,
  this.onInteractionEnd,
  this.onInteractionStart,
  this.onInteractionUpdate,
  this.panAxis = PanAxis.free,
  this.panEnabled = true,
  this.scaleEnabled = true,
  this.scaleFactor = kDefaultMouseScrollToScaleFactor,
  this.trackpadScrollCausesScale = false,
  this.transformationController,
  required this.child,
});