post abstract method

Future<Response> post(
  1. Uri url, {
  2. Map<String, String>? headers,
  3. Object? body,
})

Simulates a POST request

url The API route body The request body headers Optional headers for the request id Optional ID for the new resource (if not provided, one will be generated)

Returns a Future<Response>, which represents the result of the simulated POST operation.

Implementation

Future<Response> post(Uri url, {Map<String, String>? headers, Object? body});