$new static method

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

Wrapper for the GeoJsonStyleDefaults.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $GeoJsonStyleDefaults.wrap(
    GeoJsonStyleDefaults(
      markerColor: args[0]?.$value ?? const Color(0xff7e7e7e),
      markerSize: args[1]?.$value ?? 'medium',
      strokeColor: args[2]?.$value ?? const Color(0xff555555),
      strokeOpacity: args[3]?.$value ?? 1.0,
      strokeWidth: args[4]?.$value ?? 2.0,
      fillColor: args[5]?.$value ?? const Color(0xff555555),
      fillOpacity: args[6]?.$value ?? 0.6,
    ),
  );
}