1. Hook.bindings
Future bindings()

Source

@Hook.bindings
bindings() async {
  return container
    .bind(HttpServer, to: await _serverFactory(this.host, this.port));
}