toWidget method
Implementation
@override
InteractiveViewer toWidget(AnyWidgetContext context) {
return InteractiveViewer(
key: key?.toFlutter(context),
child: child.toWidget(context),
clipBehavior: clipBehavior?.toFlutter(context) ?? Clip.hardEdge,
alignPanAxis: alignPanAxis ?? false,
boundaryMargin: boundaryMargin?.toFlutter(context) ?? EdgeInsets.zero,
constrained: constrained ?? true,
maxScale: maxScale ?? 2.5,
minScale: minScale ?? 0.8,
onInteractionEnd: actionsCallback1(onInteractionEnd, context),
onInteractionStart: actionsCallback1(onInteractionStart, context),
onInteractionUpdate: actionsCallback1(onInteractionUpdate, context),
panEnabled: panEnabled ?? true,
scaleEnabled: scaleEnabled ?? true,
// transformationController: key?.toFlutter(context),
);
}