getApiKey static method

Future<String?> getApiKey()

Implementation

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