setEmitTouchEventsForMouse method

Future<void> setEmitTouchEventsForMouse(
  1. bool enabled, {
  2. @Enum(['mobile', 'desktop']) String? configuration,
})

enabled Whether touch emulation based on mouse input should be enabled. configuration Touch/gesture events configuration. Default: current platform.

Implementation

Future<void> setEmitTouchEventsForMouse(
  bool enabled, {
  @Enum(['mobile', 'desktop']) String? configuration,
}) async {
  assert(
    configuration == null ||
        const ['mobile', 'desktop'].contains(configuration),
  );
  await _client.send('Emulation.setEmitTouchEventsForMouse', {
    'enabled': enabled,
    if (configuration != null) 'configuration': configuration,
  });
}