$new static method

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

Create a new $ArgumentError wrapping ArgumentError.new

Implementation

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