enable method
Enable a previously disabled hook.
Implementation
void enable(String hookId) {
final registration = _registrationsById[hookId];
if (registration == null) {
throw ArgumentError('No hook registered with id "$hookId"');
}
registration.enabled = true;
}