$new static method

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

Wrap a Color in an $Color

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $Color.wrap(Color(args[0]!.$value));
}