register method
Registers the environments of one Dio instance.
Implementation
void register(List<DebugEnvironment> environments) {
if (environments.isEmpty) return;
_checkUnique(environments);
_groups.add(List.unmodifiable(environments));
_loading ??= _load();
notifyListeners();
}