enable method

void enable(
  1. String hookId
)

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;
}