getURL static method

String getURL(
  1. String path
)

Implementation

static String getURL(String path) {
  if (path.startsWith('http')) {
    return path;
  }
  if (path.startsWith('/')) {
    return Common.url_host + path;
  }
  return '${Common.url_host}/$path';
}