setMousePositionWorld method
Updates the mouse position in world coordinates.
This is typically called internally by the editor widget during mouse hover.
Pass null when the mouse exits the canvas.
Parameters:
position: The mouse position in world coordinates, ornullif outside canvas
Implementation
void setMousePositionWorld(Offset? position) {
runInAction(() {
_mousePositionWorld.value = position;
});
}