createBaseClient property
Client Function()
createBaseClient
getter/setter pair
Create a new baseClient for the authenticated client.
Overriding this is useful for example if you want to use a proxy in development which would could be done like this:
final credentials = AuthCredentials.fromJson(json);
credentials.createBaseClient = () => IOClient(
HttpClient()
..findProxy = (uri) => 'PROXY localhost:8000'
..badCertificateCallback = (cert, host, port) => true,
);
Implementation
Client Function() createBaseClient = () => Client();