Widget.interactiveViewer constructor Null safety

const Widget.interactiveViewer(
  1. {Key? key,
  2. @Default(Clip.hardEdge) Clip clipBehavior,
  3. @Default(PanAxis.free) PanAxis panAxis,
  4. @Default(EdgeInsets.zero) EdgeInsets boundaryMargin,
  5. @Default(true) bool constrained,
  6. @Default(2.5) double maxScale,
  7. @Default(0.8) double minScale,
  8. @Default(0.0000135) double interactionEndFrictionCoefficient,
  9. @Default(true) bool panEnabled,
  10. @Default(true) bool scaleEnabled,
  11. @Default(200.0) double scaleFactor,
  12. Alignment? alignment,
  13. required Widget child}
)

Implementation

const factory Widget.interactiveViewer({
  Key? key,
  @Default(Clip.hardEdge) Clip clipBehavior,
  @Default(PanAxis.free) PanAxis panAxis,
  @Default(EdgeInsets.zero) EdgeInsets boundaryMargin,
  @Default(true) bool constrained,
  @Default(2.5) double maxScale,
  @Default(0.8) double minScale,
  @Default(0.0000135) double interactionEndFrictionCoefficient,
  @Default(true) bool panEnabled,
  @Default(true) bool scaleEnabled,
  @Default(200.0) double scaleFactor,
  Alignment? alignment,
  required Widget child,
}) = InteractiveViewer;