isConnected property
bool
get
isConnected
true if a valid connection to the API is currently available
Implementation
bool get isConnected {
final int expiration = _prefs.getInt(_SPOTIFY_EXPIRATION_KEY) ?? 0;
return expiration > DateTime.now().millisecondsSinceEpoch;
}