$getProperty method

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

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'index':
      final _index = $value.index;
      return $int(_index);

    case 'signed':
      final _signed = $value.signed;
      return _signed == null ? const $null() : $bool(_signed);

    case 'decimal':
      final _decimal = $value.decimal;
      return _decimal == null ? const $null() : $bool(_decimal);
    case 'toJson':
      return __toJson;
  }
  return _superclass.$getProperty(runtime, identifier);
}