WorkerOptions constructor

WorkerOptions({
  1. WorkerType? type,
  2. RequestCredentials? credentials,
  3. String? name,
})

Implementation

factory WorkerOptions(
        {WorkerType? type, RequestCredentials? credentials, String? name}) =>
    WorkerOptions._(
        type: type?.value ?? WorkerType.classic.value,
        credentials:
            credentials?.value ?? RequestCredentials.sameOrigin.value,
        name: name ?? '');