registerAll method

void registerAll(
  1. Map<HookEvent, List<HookMatcher>> hooks
)

Register multiple matchers.

Implementation

void registerAll(Map<HookEvent, List<HookMatcher>> hooks) {
  for (final entry in hooks.entries) {
    for (final matcher in entry.value) {
      register(entry.key, matcher);
    }
  }
}