UrlConfig.withMap constructor
UrlConfig.withMap(
- Map<String, dynamic> params
)
Implementation
UrlConfig.withMap(Map<String, dynamic> params) {
cname = (params[cnameKey] != null) ? params[cnameKey].toString() : null;
secureDistribution = params[secureDistributionKey].toString();
privateCdn = params[privateCdnKey];
signUrl = params[signUrlKey];
longUrlSignature = params[longUrlSignatureKey];
shorten = params[shortenKey].toString().parseBool();
secureCdnSubdomain = params[secureCdnSubdomainKey];
useRootPath = params[useRootPathKey];
secure = params[secureKey] ?? defaultSecure;
forceVersion = params[forceVersionKey] ?? defaultForceVersion;
analytics = params[analyticsKey].toString().parseBool() ?? defaultAnalytics;
}