client property

String client
final

The client whose ApiConfig this fake answers to.

The default client's unless you say otherwise. To test code that talks to a named client, give the fake that name and configure it the same way production does:

ApiServices.init(ApiConfig(isSuccess: partnerOk), name: 'partner');
final partner = FakeApiServices(client: 'partner');

Implementation

final String client;