LocusError.timeout constructor

LocusError.timeout({
  1. Duration? timeout,
})

Location acquisition timeout.

Implementation

factory LocusError.timeout({Duration? timeout}) => LocusError(
      type: LocusErrorType.locationTimeout,
      message: 'Location request timed out',
      isRecoverable: true,
      suggestedRecovery: RecoveryAction.retry,
      details: timeout != null ? {'timeoutMs': timeout.inMilliseconds} : null,
    );