Installs a close handler for the window with the given id.
id
@override Future<void> onClose(int id, FutureOr<bool> Function() handler) { return _listener.addCloseHandler(handler); }