headers property

Map<String, dynamic>? headers
getter/setter pair

A map of headers to include with the request.

This allows for customization of HTTP headers, such as authorization tokens, content types, or any other necessary headers that your API might require.

Implementation

Map<String, dynamic>? headers;