RegistrationOptions constructor
RegistrationOptions({
- String? scope,
- WorkerType? type,
- ServiceWorkerUpdateViaCache? updateViaCache,
Implementation
factory RegistrationOptions(
{String? scope,
WorkerType? type,
ServiceWorkerUpdateViaCache? updateViaCache}) =>
RegistrationOptions._(
scope: scope ?? undefined,
type: type?.value ?? WorkerType.classic.value,
updateViaCache: updateViaCache?.value ??
ServiceWorkerUpdateViaCache.imports.value);