WorkerOptions constructor
WorkerOptions({
- WorkerType? type,
- RequestCredentials? credentials,
- 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 ?? '');