pressKeycode method

  1. @Deprecated('Use pressKeycodeWithBitmasks with integer bitmasks instead.')
Future<void> pressKeycode(
  1. int keycode, {
  2. List<int>? metastate,
  3. List<int>? flags,
})

Press an Android keycode using legacy lists of modifier bits.

List entries are combined with bitwise OR. Empty lists produce zero; omitted or null lists leave the corresponding modifier unspecified.

Implementation

@Deprecated('Use pressKeycodeWithBitmasks with integer bitmasks instead.')
Future<void> pressKeycode(int keycode,
        {List<int>? metastate, List<int>? flags}) =>
    pressKeycodeWithBitmasks(keycode,
        metastate: _combineBitmasks(metastate),
        flags: _combineBitmasks(flags));