getConfig function
Convenience function to get configuration with automatic caching
Usage:
final config = await getConfig();
With custom options:
final config = await getConfig(
customOptions: CDNConfigOptions(
cdnBaseUrl: 'https://custom-cdn.com',
configPath: '/custom-path',
),
);
@param customOptions Optional custom configuration options @returns Future
Implementation
Future<CDNConfig> getConfig({CDNConfigOptions? customOptions}) async {
return fetchConfigFromCDN(customOptions);
}