sendKeyUpEvent method

Future<void> sendKeyUpEvent (LogicalKeyboardKey key, { String platform: 'android' })

Simulates sending a physical key up event through the system channel.

This only simulates key up events coming from a physical keyboard, not from a soft keyboard.

Specify platform as one of the platforms allowed in Platform.operatingSystem to make the event appear to be from that type of system. Defaults to "android". May not be null.

See also:


Future<void> sendKeyUpEvent(LogicalKeyboardKey key, { String platform = 'android' }) async {
  assert(platform != null);
  // Internally wrapped in async guard.
  return simulateKeyUpEvent(key, platform: platform);