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

Creates an instance from an ApplicationConfiguration.

Source

TestClient.fromConfig(ApplicationConfiguration config, {bool useHTTPS: false}) {
  baseURL = "${useHTTPS ? "https" : "http"}://localhost:${config.port}";
}