$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':
      return $int($value.index);
    case 'signed':
      return $value.signed == null ? const $null() : $bool($value.signed!);
    case 'decimal':
      return $value.decimal == null ? const $null() : $bool($value.decimal!);
    case 'hashCode':
      return $int($value.hashCode);
    case 'toJson':
      return __toJson;
    case 'toString':
      return __toString;
  }
  throw UnimplementedError(
      'property $identifier not generated for TextInputType');
}