baseUrl static method

Future<String> baseUrl()

Implementation

static Future<String> baseUrl() async {
  bool isDev = await Utils.getEnviromentMode();
  var url = '';
  if (isDev) {
    url = dotenv.env['baseUrlSandbox'].toString();
  } else {
    url = dotenv.env['baseUrlLive'].toString();
  }
  print('URL $url - $isDev');
  return url;
}