League class

Constructors

League({required String apiToken, required String server})
Class League() instance to use to get several information about an player. Requiers an api-token from the official League developer page:

Properties

apiToken String
This is the api-token you need to insert in order to use the League() instance and therefore the hole package xD!
getter/setter pair
champMasteriesList List<ChampionMastery>?
List contains every champion with their according mastery stat.
getter/setter pair
gameList List<Game>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server String?
A string representation of the server, you want to get data from.
getter/setter pair

Methods

getChampionMasteries({String? summonerID}) Future<List<ChampionMastery>?>
Get an Future instance of the ChampionMasteries class. So use the
getCurrentGame({String? summonerID, String? summonerName}) Future<GameStat?>
getGameHistory({String? accountID, String? summonerName}) Future<List<Game>?>
Get an Future instance of the Game class as a List of it. So use the
getRankInfos({String? summonerID}) Future<Rank>
getSummonerInfo({String? summonerName}) Future<Summoner>
Get an Future instance of the Summoner() class. So use the
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