Yggdrasil class Null safety

Annotations

Constructors

Yggdrasil()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

authenticate(String username, String password, {String? clientToken}) Future<MojangAccount>
Authenticates a user with given credentials username and password. [...]
invalidate(MojangAccount mojangAccount) Future<bool>
Invalidates the accessToken of given mojangAccount.
refresh(MojangAccount account) Future<MojangAccount>
Refreshes the account. The account data will be overridden with the new refreshed data. The return value is also the same account object.
signout(String username, String password) Future<bool>
Signs the user out and invalidates the accessToken.
validate(String accessToken, {String? clientToken}) Future<bool>
Checks if given accessToken and clientToken are still valid. [...]