setTouchEmulationEnabled method

Future<void> setTouchEmulationEnabled(
  1. bool enabled, {
  2. int? maxTouchPoints,
})

Enables touch on platforms which do not support them. enabled Whether the touch event emulation should be enabled. maxTouchPoints Maximum touch points supported. Defaults to one.

Implementation

Future<void> setTouchEmulationEnabled(
  bool enabled, {
  int? maxTouchPoints,
}) async {
  await _client.send('Emulation.setTouchEmulationEnabled', {
    'enabled': enabled,
    if (maxTouchPoints != null) 'maxTouchPoints': maxTouchPoints,
  });
}