simulateTouch static method

Future<bool> simulateTouch(
  1. double x,
  2. double y
)

Implementation

static Future<bool> simulateTouch(double x, double y) async {
  try {
    final result = await _channel.invokeMethod('simulateTouch', {
      'x': x,
      'y': y,
    });
    return result as bool;
  } catch (e) {
    return false;
  }
}