ValorantClient class

Constructors

ValorantClient(UserDetails _userDetails, {Callback callback = const Callback(), bool shouldPersistSession = false})
Default constructor of ValorantClient

Properties

assetInterface ↔ AssetInterface
This interface wraps over all riot asset specific requests.
getter/setter pair
callback Callback
Callback's are containers for functions which are called on an event such as on an error during a request process etc. They help to know what error occured and where it occured.
final
decodedAccessTokenFields Map<String, dynamic>
no setter
getAuthorizationHeaders Map<String, dynamic>
Gets the headers which helps to authorize a request to RIOT Valorant API.
no setter
hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
Returns true only if this instance is authorized and completed its startup process
no setter
matchInterface ↔ MatchInterface
This interface wraps over all match specific requests.
getter/setter pair
playerInterface ↔ PlayerInterface
This interface wraps over all player specific requests.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionValidityInHours int
The validity period of this authenticated session.
no setter
shouldPersistSession bool
final
userPuuid String
PUUID of the logged in User
no setter
userRegion Region
Region of logged in User
no setter

Methods

executeGenericRequest<T extends ISerializable<T>>({required T typeResolver, required HttpMethod method, required Uri uri, dynamic body}) Future<T?>
Executes a generic request with authentication to the specified Uri with specified HttpMethod and with the specified body (if any)
executeRawRequest({required HttpMethod method, required Uri uri, dynamic body}) Future
Executes a raw request with authentication to the specified Uri with specified HttpMethod and with the specified body (if any)
init(bool handleSessionAutomatically) Future<bool>
Initializes the client by authorizing the user with the constructor supplied UserDetails
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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