FastAdService constructor
Constructs an instance of FastAdService with the provided
uriAuthority.
The uriAuthority parameter is the authority of the URI to be used for
API requests.
The debugLabel parameter is a debug label to be used for debugging
purposes.
The ttl parameter is the time-to-live duration for cached data.
If the ttl parameter is not provided, the default value is 5 minutes
in debug mode and 60 minutes in release mode.
The ttl parameter is ignored in debug mode.
Implementation
FastAdService(
this.uriAuthority, {
this.debugLabel = 'FastAdService',
Duration? ttl,
}) {
if (kDebugMode) {
this.ttl = kFastAdServiceCacheTTLDebug;
} else {
this.ttl = ttl ?? kFastAdServiceCacheTTL;
}
}