getFinalEndpoint function

String getFinalEndpoint(
  1. String url,
  2. NetworkState state
)

Implementation

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

  return state.apiEndpoint.value;
}