$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 __plus;
    case '-':
      return __minus;
    case '*':
      return __mul;
    case '/':
      return __div;

    case '%':
      return __mod;
    case '<':
      return __lt;
    case '>':
      return __gt;
    case '<=':
      return __lteq;
    case '>=':
      return __gteq;
    case 'compareTo':
      return __compareTo;
    case 'toInt':
      return __toInt;
    case 'ceil':
      return __ceil;
  }
  return _superclass.$getProperty(runtime, identifier);
}