TestClient.fromConfig(ApplicationConfiguration config, { bool useHTTPS: false })

Creates an instance from an ApplicationConfiguration.

Source

TestClient.fromConfig(ApplicationConfiguration config, {bool useHTTPS: false}) :
  _scheme = useHTTPS ? "https" : "http",
  _host = "localhost",
  _port = config.port;