$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 'imageProvider':
      return $ImageProvider.wrap($value.imageProvider);
    case 'width':
      return $value.width == null ? const $null() : $int($value.width!);
    case 'height':
      return $value.height == null ? const $null() : $int($value.height!);
    case 'allowUpscaling':
      return $bool($value.allowUpscaling);
    case 'hashCode':
      return $int($value.hashCode);
    case 'loadImage':
      return __loadImage;
    case 'obtainKey':
      return __obtainKey;
  }
  throw UnimplementedError(
      'property $identifier not generated for ResizeImage');
}