setDragInterception method

Future<void> setDragInterception(
  1. bool enabled
)

@param enabled - Whether to enable drag interception.

@remarks Activating drag interception enables the {@link Input.drag}, methods This provides the capability to capture drag events emitted on the page, which can then be used to simulate drag-and-drop.

Implementation

Future<void> setDragInterception(bool enabled) async {
  _userDragInterceptionEnabled = enabled;
  await devTools.input.setInterceptDrags(enabled);
}