injectMockHttpClient method Null safety

void injectMockHttpClient(
  1. Client client
)
inherited

Implementation

void injectMockHttpClient(http.Client client) {
  if (Constants.mockHttpForTesting) {
    httpClient = client;
  }
}