$findKeyByCode static method

$Value? $findKeyByCode(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Wrapper for the PhysicalKeyboardKey.findKeyByCode method

Implementation

static $Value? $findKeyByCode(
  Runtime runtime,
  $Value? target,
  List<$Value?> args,
) {
  final value = PhysicalKeyboardKey.findKeyByCode(args[0]!.$value);
  return value == null ? const $null() : $PhysicalKeyboardKey.wrap(value);
}