setApiKey method

Future<void> setApiKey(
  1. String x
)

Implementation

Future<void> setApiKey(String x) async {
  SharedPreferences sp = await SharedPreferences.getInstance();
  await sp.setString('key', x);
}