$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 '==':
      return __equals;
    case '!=':
      return __not_equals;
    case 'toString':
      return __toString;
    case 'hashCode':
      return $int($value.hashCode);
  }

  throw UnimplementedError();
}