viewPoint method

ViewPoint viewPoint(
  1. double x,
  2. double y
)

(x, y) in the view, as the input gives a finger's place: for camera.screenPointToRay and the like. Throws a StateError while the input has no view size.

Implementation

ViewPoint viewPoint(double x, double y) {
  _sized('viewPoint');
  return ViewPoint(x, y, width: input.width, height: input.height);
}