$new static method

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

Wrapper for the LocationSet.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $LocationSet.wrap(
    LocationSet(
      include: (args[0]?.$reified ?? const [] as List?)?.cast(),
      exclude: (args[1]?.$reified ?? const [] as List?)?.cast(),
      includeCircular: (args[2]?.$reified ?? const [] as List?)?.cast(),
      excludeCircular: (args[3]?.$reified ?? const [] as List?)?.cast(),
    ),
  );
}