unregisterHook method

Hook<T>? unregisterHook(
  1. Hook<T> hook
)

remove a hook from the controller and return it back if exists

Implementation

Hook<T>? unregisterHook(Hook<T> hook) => _hooks.remove(hook);