getEnhancers method

  1. @override
List<DioEnhancer> getEnhancers(
  1. dynamic config
)
override

Get list of provider-specific enhancers

Implementation

@override
List<DioEnhancer> getEnhancers(dynamic config) {
  final googleConfig = config as GoogleConfig;

  return [
    // Add query parameter authentication enhancer
    _GoogleAuthEnhancer(googleConfig.apiKey),
  ];
}