headers property

Map<String, String>? headers
final

Custom HTTP headers to include in the request.

These headers will be sent along with the HTTP request. Useful for authentication, content-type specification, or custom headers. Example: {'Authorization': 'Bearer token', 'Content-Type': 'application/json'}

Implementation

final Map<String, String>? headers;