RequestData constructor

RequestData({
  1. required Method method,
  2. required String baseUrl,
  3. Map<String, String>? headers,
  4. Map<String, String>? params,
  5. dynamic body,
  6. Encoding? encoding,
})

Implementation

RequestData({
  required this.method,
  required this.baseUrl,
  Map<String, String>? headers,
  Map<String, String>? params,
  this.body,
  this.encoding,
})  : headers = headers ?? {},
      params = params ?? {};