RegistrationOptions constructor

RegistrationOptions({
  1. String? scope,
  2. WorkerType? type,
  3. 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);