shutdown method

Hook shutdown()

Initialize shutdown hook Shutdown hooks are ran after executing the request, before the response is sent

Implementation

Hook shutdown() {
  final hook = Hook()..groups(['*']);
  _shutdown.add(hook);
  return hook;
}