restrictAllExcept method

void restrictAllExcept(
  1. Set<String> allowed
)

Restrict all tools except those in allowed.

Implementation

void restrictAllExcept(Set<String> allowed) {
  for (final reg in _tools.values) {
    reg.restricted = !allowed.contains(reg.name);
  }
}