lock method Null safety

void lock()

Lock the current Dio instance.

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

Implementation

void lock();