showMagnifier method
- Offset positionToShow
Shows the magnifier at the position given by positionToShow
,
if there is no magnifier visible.
Updates the magnifier to the position given by positionToShow
,
if there is a magnifier visible.
Does nothing if a magnifier couldn't be shown, such as when the selection overlay does not currently exist.
Implementation
void showMagnifier(Offset positionToShow) {
if (_selectionOverlay == null) {
return;
}
if (_selectionOverlay!.magnifierIsVisible) {
_selectionOverlay!.updateMagnifier(positionToShow);
} else {
_selectionOverlay!.showMagnifier(positionToShow);
}
}