LastFMAuthorized class

Inheritance
Available Extensions

Constructors

LastFMAuthorized(String apiKey, {String? secret, required String sessionKey, required String username, String? userAgent})

Properties

apiKey String
finalinherited
apiSecret String?
finalinherited
dio → Dio
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionKey String
Feel free to save this value.
final
userAgent String?
The user agent to use in Last.fm requests.
finalinherited
username String
This is here for your convenience. Also finishAuthorizeDesktop fills it.
final

Methods

authorizeDesktop() Future<String>
Returns the URL to send the user to. Once the user returns to the app and presses some button, run finishAuthorizeDesktop, await it, and (optimally) use the returned LastFMAuthorized instead.
inherited
finishAuthorizeDesktop() Future<LastFMAuthorized>
Triggered when the user says they are done.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String method, Map<String, String> data, [bool authorize = true]) Future<XmlDocument>
Perform a "read" operation on the Last.fm api. This is typically done to get information about artists, albums, or tracks, or when authenticated to get information about the user or their listening habits.
override
sign(Map<String, String> parameters) String
Used by authorizeDesktop and LastFMAuthorized. You probably don't need to touch this as it's all done for you under the hood.
inherited
toString() String
A string representation of this object.
inherited
write(String method, Map<String, String> data) Future<XmlDocument>
Perform a "write" call to the API. This can be used for scrobbling, liking, and removing tags.

Operators

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