ValorantClient constructor

ValorantClient(
  1. UserDetails _userDetails, {
  2. Callback callback = const Callback(),
  3. bool shouldPersistSession = false,
})

Default constructor of ValorantClient

_userDetails parameter must contain a valid Username and Password else login will fail.

callback is optional. Pass a Callback instance to this for events on request error or internal error.

Implementation

ValorantClient(this._userDetails, {this.callback = const Callback(), this.shouldPersistSession = false});