$new static method

$Value? $new(
  1. Runtime runtime,
  2. $Value? thisValue,
  3. List<$Value?> args
)

Wrapper for the CircleLayer.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $CircleLayer.wrap(
    CircleLayer(
      key: args[0]?.$value,
      circles: (args[1]!.$reified as List).cast(),
      hitNotifier: args[2]?.$value,
      optimizeRadiusInMeters: args[3]?.$value ?? false,
    ),
  );
}