$new static method

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

Wrapper for the Marker.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $Marker.wrap(
    Marker(
      key: args[0]?.$value,
      point: args[1]!.$value,
      child: args[2]!.$value,
      width: args[3]?.$value ?? 30,
      height: args[4]?.$value ?? 30,
      alignment: args[5]?.$value,
      rotate: args[6]?.$value,
    ),
  );
}