apply method

  1. @override
Future<void> apply(
  1. RequestOptions options,
  2. AuthStrategyContext context
)
override

Implementation

@override
Future<void> apply(
  RequestOptions options,
  AuthStrategyContext context,
) async {
  final value = apiKey.trim();
  if (value.isNotEmpty) {
    options.headers.putIfAbsent(headerName, () => value);
  }
}