$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 'input':
      return $String($value.input);

    case 'start':
      return $int($value.start);

    case 'end':
      return $int($value.end);

    case 'groupCount':
      return $int($value.groupCount);

    case 'group':
    case '[]':
      return __group;
    case 'groups':
      return __groups;
  }
  return _superclass.$getProperty(runtime, identifier);
}