TestClient.onPort(int _port)

Creates an instance that targets http://localhost:_port.

Source

TestClient.onPort(this._port);