$checkValidIndex static method

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

Implementation

static $Value? $checkValidIndex(
  Runtime runtime,
  $Value? target,
  List<$Value?> args,
) {
  return $int(
    RangeError.checkValidIndex(
      args[0]?.$value,
      args[1]?.$value,
      args[2]?.$value,
      args[3]?.$value,
      args[4]?.$value,
    ),
  );
}