$new static method

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

Wrapper for the Response.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $Response.wrap(
    Response(
      args[0]!.$value,
      args[1]!.$value,
      request: args[2]?.$value,
      headers: (args[3]?.$reified ?? const {} as Map?)?.cast(),
      isRedirect: args[4]?.$value ?? false,
      persistentConnection: args[5]?.$value ?? true,
      reasonPhrase: args[6]?.$value,
    ),
  );
}