getApiKey static method

Future<String?> getApiKey()

Implementation

static Future<String?> getApiKey() async {
  SharedPreferences pref = await SharedPreferences.getInstance();
  return pref.getString(Key_apikey);
}