register method

void register(
  1. List<DebugEnvironment> environments
)

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();
}