$getProperty method

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

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'message':
      return $value.message == null ? $null() : $Object($value.message!);
    case 'invalidValue':
      return $value.invalidValue == null
          ? $null()
          : $num($value.invalidValue!);
    case 'name':
      return $value.name == null ? $null() : $String($value.name!);
  }
  return _superclass.$getProperty(runtime, identifier);
}