StreamedResponseCopyWith extension

Extends StreamedResponse to provide copied instances.

on

Methods

copyWith({Stream<List<int>>? stream, int? statusCode, int? contentLength, BaseRequest? request, Map<String, String>? headers, bool? isRedirect, bool? persistentConnection, String? reasonPhrase}) StreamedResponse
Creates a new instance of StreamedResponse based of on this. It copies all the properties and overrides the ones sent via parameters.