hasHooks method

bool hasHooks(
  1. HookType type
)

Check if any hooks are registered for a given type.

Implementation

bool hasHooks(HookType type) {
  final chain = _chains[type];
  return chain != null && chain.activeLength > 0;
}