$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 'markerColor':
      return $Color.wrap($value.markerColor);

    case 'markerSize':
      return $String($value.markerSize);

    case 'strokeColor':
      return $Color.wrap($value.strokeColor);

    case 'strokeOpacity':
      return $double($value.strokeOpacity);

    case 'strokeWidth':
      return $double($value.strokeWidth);

    case 'fillColor':
      return $Color.wrap($value.fillColor);

    case 'fillOpacity':
      return $double($value.fillOpacity);
  }
  return _superclass.$getProperty(runtime, identifier);
}