LastFMUnauthorized class

An unauthorized LastFM instance. This supports

Implemented types
Implementers
Available Extensions

Constructors

LastFMUnauthorized(String apiKey, [String? apiSecret, String? userAgent])

Properties

apiKey String
final
apiSecret String?
final
dio → Dio
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAgent String?
The user agent to use in Last.fm requests.
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.
finishAuthorizeDesktop() Future<LastFMAuthorized>
Triggered when the user says they are done.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String method, Map<String, String> data) 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.
toString() String
A string representation of this object.
inherited

Operators

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