$new static method

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

Wrapper for the StreamedResponse.new constructor

Implementation

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