Request constructor

Request({
  1. required String method,
  2. required Uri url,
  3. required Headers headers,
  4. required Stream<List<int>> bodyStream,
  5. Map<String, String>? params,
})

Implementation

Request({
  required this.method,
  required this.url,
  required this.headers,
  required Stream<List<int>> bodyStream,
  Map<String, String>? params,
})  : params = params == null
          ? <String, String>{}
          : Map<String, String>.from(params),
      body = Body(bodyStream);