NowplayingSpotifyController class

A controller for interactions with the Spotify API

Properties

hashCode int
The hash code for this object.
no setterinherited
isConnected bool
true if a valid connection to the API is currently available
no setter
isEnabled bool
true if the Spotify API is available for use
no setter
isUnconnected bool
true if not connected
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
track SpotifyTrack
getter/setter pair

Methods

api() Future<SpotifyApi?>
Gets an instance of the api.
currentTrack([dynamic _]) Future<NowPlayingTrack>
Returns the current track status from Spotify
disconnect() Future<void>
Disconencts the Spotify API, disallowing further interrogation
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCredentials({required String clientId, required String clientSecret}) → void
Sets the Spotify ClientID and ClientSecret for API interaction
setPrefs(SharedPreferences prefs) → void
signIn(dynamic context) Future<bool?>
Pushes a page onto the top of the Navigator stack containing a WebView holding the Spotify sign-in flow. Users must have a valid Spotify account and be signed in for Spotify nowplaying details to be available
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited