darthus 1.3.5
darthus: ^1.3.5 copied to clipboard
Darthus is a package that aims to give an easy access to League of Legends official API for dart's users.
Dartius is a package that aim to give an easy and intuitive access to league of legends API.
Features #
This package can retrieve information for a summoner and his matches.
Usage #
Before using the package remember set your api key like that:
ApiRequest.setApiKey(myApyKey);
Since constructors can't be async you must invoke the function buildSummoner before using a summoner instance.
// Creating an instance of the summoner class
Summoner summoner('euw1', 'summonerName');
// Getting all data from servers (async method)
await summoner.buildSummoner;
The buildSummoner method will retrieve a list with the last 20 matches played by the summoner (default request), if you want you can call the getMatches method where you can choose the number of matches (max 100) and what type of matches the server is going to send you. The type of matches must be specified using the matchType enum, like this:
matchType.normal;
matchType.ranked;
Additional information #
If you desire you can contribute to the package: https://www.github.com/Ezan777/dartius