apiKey static method

Future<String> apiKey()

Implementation

static Future<String> apiKey() async {
  bool isDev = await Utils.getEnviromentMode();
  print("isDev $isDev");
  var key = '';
  if (isDev) {
    key = dotenv.env['sdkApiKeySandbox'].toString();
  } else {
    key = dotenv.env['sdkApiKeyLive'].toString();
  }
  print("api key $key");
  return key;
}