setGlobal method
Sets the app-wide environments, available before any Dio exists.
Implementation
void setGlobal(List<DebugEnvironment> environments) {
_checkUnique(environments);
_global = List.unmodifiable(environments);
if (environments.isNotEmpty) _loading ??= _load();
notifyListeners();
}