unregister method
Unregister a hook by ID. Returns true if found and removed.
Implementation
bool unregister(String hookId) {
final registration = _registrationsById.remove(hookId);
if (registration == null) return false;
final chain = _chains[registration.type];
chain?.remove(hookId);
return true;
}