$new static method
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,
),
);
}