tapSequence method

  1. @override
Future<void> tapSequence(
  1. List<({int x, int y})> points, {
  2. required int intervalMs,
})
override

Taps each physical point in order with intervalMs between taps.

Implementation

@override
Future<void> tapSequence(List<({int x, int y})> points, {required int intervalMs}) => _call({
      'cmd': 'taps',
      'points': [for (final p in points) _point(p.x, p.y, 0).sublist(0, 2)],
      'intervalMs': intervalMs,
    }, extraMs: points.length * (intervalMs + 80));