Request.post constructor

Request.post({
  1. required String url,
  2. Map<String, String>? headers,
  3. RequestBody? body,
})

Implementation

factory Request.post({
  required String url,
  Map<String, String>? headers,
  RequestBody? body,
}) =>
    Request(
      method: "POST",
      url: url,
      headers: headers ?? {},
      body: body,
    );