LockOptions constructor

LockOptions({
  1. LockMode? mode,
  2. bool? ifAvailable,
  3. bool? steal,
  4. AbortSignal? signal,
})

Implementation

factory LockOptions(
        {LockMode? mode,
        bool? ifAvailable,
        bool? steal,
        AbortSignal? signal}) =>
    LockOptions._(
        mode: mode?.value ?? LockMode.exclusive.value,
        ifAvailable: ifAvailable ?? false,
        steal: steal ?? false,
        signal: signal ?? undefined);