logicalToPhysical function

({int x, int y}) logicalToPhysical(
  1. double x,
  2. double y,
  3. double devicePixelRatio
)

Converts Flutter logical pixels to the physical pixels input tap takes.

Implementation

({int x, int y}) logicalToPhysical(double x, double y, double devicePixelRatio) =>
    (x: (x * devicePixelRatio).round(), y: (y * devicePixelRatio).round());