Client class

client object

Constructors

Client({required ClientOptions options, String overrideSession = ""})
the main client object

Properties

accountId String
returns account id of client
no setter
athena AthenaProfile
athena profile for client
getter/setter pair
auth FortniteAuth
auth client for client
getter/setter pair
campaign CampaignProfile
campaign profile for client
getter/setter pair
commonCore CommonCoreProfile
common core profile for client
getter/setter pair
deviceId String
returns device id of client
no setter
displayName String
returns display name of client
no setter
events Events
getter/setter pair
friends Friends
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
http HTTP
http client for client
latefinal
onInvalidAccount Stream<InvalidAccountException>
returns the invalid account event stream
no setter
onSessionUpdate Stream<Client>
returns the session update event stream
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret String
returns device auth secret of client
no setter
session String
session for the account
getter/setter pair

Methods

delete(String url, {String? overrideToken}) Future
findPlayers(String prefix) Future<List<Player>>
find players by name
get(String url, {String? overrideToken}) Future
send a get request to epic games.
getAvatars(List<String> accountIds) Future<List<Avatar>>
returns the avatar of the given account ids
log(LogLevel l, String message) → void
log function
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
partyInvites() Future
partyLookup(String partyId) Future
partyPromoteUser(String userId, String partyId) Future
post(String url, {dynamic body = const {}, String? overrideToken}) Future
send a post request to epic games.
put(String url, dynamic body, String? overrideToken) Future
put request to url with body.
refreshSession() Future
Refresh session of the account
send({required String method, required String url, dynamic body, bool dontRetry = false, String? overrideToken}) Future
send request to epic games
sendInvalidAccountError() → void
send invalid account error
sendPartyIntention(String userId, String accountId) Future<PartyIntention>
toString() String
A string representation of this object.
inherited

Operators

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