$getProperty method
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');
}