$new static method

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

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $RegExp.wrap(RegExp(args[0]!.$value,
      multiLine: args[1]?.$value ?? false,
      caseSensitive: args[2]?.$value ?? true,
      unicode: args[3]?.$value ?? false,
      dotAll: args[4]?.$value ?? false));
}