$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 'crs':
      final _crs = $value.crs;
      return runtime.wrapAlways(_crs);

    case 'minZoom':
      final _minZoom = $value.minZoom;
      return _minZoom == null ? const $null() : $double(_minZoom);

    case 'maxZoom':
      final _maxZoom = $value.maxZoom;
      return _maxZoom == null ? const $null() : $double(_maxZoom);

    case 'center':
      final _center = $value.center;
      return runtime.wrapAlways(_center);

    case 'zoom':
      final _zoom = $value.zoom;
      return $double(_zoom);

    case 'rotation':
      final _rotation = $value.rotation;
      return $double(_rotation);

    case 'nonRotatedSize':
      final _nonRotatedSize = $value.nonRotatedSize;
      return $Size.wrap(_nonRotatedSize);

    case 'visibleBounds':
      final _visibleBounds = $value.visibleBounds;
      return $LatLngBounds.wrap(_visibleBounds);

    case 'size':
      final _size = $value.size;
      return $Size.wrap(_size);

    case 'pixelOrigin':
      final _pixelOrigin = $value.pixelOrigin;
      return $Offset.wrap(_pixelOrigin);

    case 'rotationRad':
      final _rotationRad = $value.rotationRad;
      return $double(_rotationRad);

    case 'pixelBounds':
      final _pixelBounds = $value.pixelBounds;
      return $Rect.wrap(_pixelBounds);
    case 'withNonRotatedSize':
      return __withNonRotatedSize;

    case 'withRotation':
      return __withRotation;

    case 'withOptions':
      return __withOptions;

    case 'withPosition':
      return __withPosition;

    case 'projectAtZoom':
      return __projectAtZoom;

    case 'unprojectAtZoom':
      return __unprojectAtZoom;

    case 'getWorldWidthAtZoom':
      return __getWorldWidthAtZoom;

    case 'getZoomScale':
      return __getZoomScale;

    case 'getScaleZoom':
      return __getScaleZoom;

    case 'getPixelWorldBounds':
      return __getPixelWorldBounds;

    case 'getOffsetFromOrigin':
      return __getOffsetFromOrigin;

    case 'getNewPixelOrigin':
      return __getNewPixelOrigin;

    case 'pixelBoundsAtZoom':
      return __pixelBoundsAtZoom;

    case 'latLngToScreenOffset':
      return __latLngToScreenOffset;

    case 'screenOffsetToLatLng':
      return __screenOffsetToLatLng;

    case 'rotatePoint':
      return __rotatePoint;

    case 'clampZoom':
      return __clampZoom;

    case 'offsetToCrs':
      return __offsetToCrs;

    case 'focusedZoomCenter':
      return __focusedZoomCenter;
  }
  return _superclass.$getProperty(runtime, identifier);
}