newHeaders method

Future<Map<String, String>> newHeaders(
  1. Map<String, String>? headers
)

Checks and adds the authHeaders to any requests made to the server

Implementation

Future<Map<String, String>> newHeaders(Map<String, String>? headers) async {
  headers ??= <String, String>{};
  headers.addAll(authHeaders ?? <String, String>{});
  return headers;
}