If you introduce another method in this class:

    Future _handleConnection(TcpClient client) { ...

you won't need to cache the returned `client` in a local variable.