setTouches method

Future<Map<String, Object?>> setTouches(
  1. bool on, {
  2. bool ownOnly = false,
})

Turns the touch overlay on or off: {on}, plus reason (notDebug) when it could not be drawn.

Implementation

Future<Map<String, Object?>> setTouches(bool on, {bool ownOnly = false}) {
  showTouches = on;
  ownTouchesOnly = ownOnly;
  return call({'op': 'touches', 'on': '$on', 'own': '$ownOnly'});
}