custom static method

Map<String, String> custom(
  1. String scheme,
  2. String credentials
)

Creates a custom authorization header.

Example:

final res = await client.get(
  '/api',
  headers: AuthHelper.custom('ApiKey', 'my-api-key'),
);

Implementation

static Map<String, String> custom(String scheme, String credentials) => {
  'authorization': '$scheme $credentials',
};