touch method

Future<FlutterInputMiss?> touch(
  1. List<({int ms, double x, double y})> points
)

Sends one touch through points (logical x, y, ms after the first); null when it was delivered.

Implementation

Future<FlutterInputMiss?> touch(List<({double x, double y, int ms})> points) => _call({
      'op': 'touch',
      'pointer': '${_nextPointer++}',
      'pts': points.map((p) => '${p.x},${p.y},${p.ms}').join(';'),
    }, extraMs: points.last.ms);