globalToLocal method
Converts a point from the global coordinate system to the local coordinate system of the viewport.
Use output
to send in a Vector2 object that will be used to avoid
creating a new Vector2 object in this method.
Opposite of localToGlobal.
Implementation
@override
Vector2 globalToLocal(Vector2 point, {Vector2? output}) {
final viewportPoint = super.globalToLocal(point, output: output);
return transform.globalToLocal(viewportPoint, output: output);
}