lock method Null safety

  1. @override
void lock()
override

Lock the current Dio instance.

Dio will enqueue the incoming request tasks instead send them directly when interceptor.requestOptions is locked.

Implementation

@override
void lock() {
  interceptors.requestLock.lock();
}