disable method
Disable a hook without unregistering it.
Implementation
void disable(String hookId) {
final registration = _registrationsById[hookId];
if (registration == null) {
throw ArgumentError('No hook registered with id "$hookId"');
}
registration.enabled = false;
}