$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 'codePoint':
      return $int($value.codePoint);
    case 'fontFamily':
      return $value.fontFamily == null
          ? const $null()
          : $String($value.fontFamily!);
    case 'fontPackage':
      return $value.fontPackage == null
          ? const $null()
          : $String($value.fontPackage!);
    case 'matchTextDirection':
      return $bool($value.matchTextDirection);
    case 'hashCode':
      return $int($value.hashCode);
    case 'toString':
      return __toString;
  }
  throw UnimplementedError('property $identifier not generated for IconData');
}