PredictionService constructor

PredictionService({
  1. required Client client,
})

Creates a PredictionService using client for transport.

The provided http.Client must be configured to provide whatever authentication is required by PredictionService. You can do that using package:googleapis_auth.

Implementation

PredictionService({required http.Client client})
  : _client = ServiceClient(client: client);