disconnect method

Future<void> disconnect()

Disconencts the Spotify API, disallowing further interrogation

Implementation

Future<void> disconnect() async {
  _spotifyApi = null;
  await Future.wait([
    _prefs.remove(_SPOTIFY_ACCESS_KEY),
    _prefs.remove(_SPOTIFY_REFRESH_KEY),
    _prefs.remove(_SPOTIFY_EXPIRATION_KEY),
  ]);
}