MagnifierTool constructor
const
MagnifierTool({})
Creates a magnifier tool widget.
The widget parameter is required and represents the content to be magnified.
The zoomPosition parameter determines how the magnifier follows the touch point.
Defaults to BouncingZoomPosition with MagnifierPosition.bouncingTopLeftBottomLeft.
The magnifierSize parameter sets the size of the magnifier lens.
Defaults to 100x100.
The zoomScale parameter determines the magnification level.
Defaults to 2.0.
The borderColor parameter sets the color of the magnifier border.
Defaults to black.
The showBorder parameter determines whether to show the magnifier border.
Defaults to true.
Implementation
const MagnifierTool({
super.key,
required this.widget,
this.zoomPosition = const BouncingZoomPosition(MagnifierPositionEnum.bouncingTopLeftBottomLeft),
this.magnifierSize = const Size(100, 100),
this.zoomScale = 2.0,
this.borderColor = Colors.black,
this.showBorder = true,
});