getFinalEndpoint function
Implementation
String getFinalEndpoint(String url, NetworkState state) {
if (url.length > 0) return url;
return state.apiEndpoint;
}
String getFinalEndpoint(String url, NetworkState state) {
if (url.length > 0) return url;
return state.apiEndpoint;
}