getTestUriProductHelper static method
- UserPreferences userPreferences
Returns the standard test env, or the custom test env if relevant.
Implementation
static UriProductHelper getTestUriProductHelper(
UserPreferences userPreferences,
) {
final String testEnvDomain =
userPreferences.getDevModeString(
UserPreferencesDevMode.userPreferencesTestEnvDomain,
) ??
'';
return testEnvDomain.isEmpty
? uriHelperFoodTest
: UriProductHelper(
isTestMode: true,
userInfoForPatch: HttpHelper.userInfoForTest,
domain: testEnvDomain,
);
}