$getProperty method

  1. @override
$Value? $getProperty(
  1. Runtime runtime,
  2. String identifier
)

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'keyId':
      return $int($value.keyId);
    case 'keyLabel':
      return $String($value.keyLabel);
    case 'debugName':
      return $value.debugName == null
          ? const $null()
          : $String($value.debugName!);
    case 'hashCode':
      return $int($value.hashCode);
    case 'isAutogenerated':
      return $bool($value.isAutogenerated);
    case 'debugFillProperties':
      return __debugFillProperties;
  }
  throw UnimplementedError(
      'property $identifier not generated for LogicalKeyboardKey');
}