register method

void register(
  1. PolicyHook hook
)

Registers a hook.

Implementation

void register(PolicyHook hook) => _hooks.add(hook);