pikadart

Last updated:

0 purchases

pikadart Image
pikadart Images
Add to Cart

Description:

pikadart

PikaDart #
Overview #
This Dart package serves as a wrapper for the PokeApi, providing a convenient and efficient way to
interact with the Pokémon API in Dart projects. The package is designed to simplify the process of
making API requests and includes an automatic caching mechanism to enhance performance.
Inspired by PokeKotlin.
Features #

PokeApi Integration: Seamlessly interact with the PokeApi using Dart.
Automatic Caching: Improve response times by automatically caching API responses.
Easy to Use: Simple and intuitive methods make it easy to retrieve Pokémon data.

Installation #
To use this package in your Dart project, add the following to your pubspec.yaml file:
dependencies:
pikadart: ^1.0.0
copied to clipboard
Example #
Get a Pokémon by it's name #
// Using general client
final pokeapiClient = PokeapiClient();
final pikachu = pokeapiClient.pokemon.getPokemonByName('pikachu');

// Or using a specified client
final pokemonClient = PokemonClient();
final pikachu = pokemonClient.getPokemonByName('pikachu');
copied to clipboard
Get a list of berries with pagination #
// Using general client
final pokeapiClient = PokeapiClient();
final berries = pokeapiClient.berries.getBerryList(0, 20);

// Or using a specified client
final berriesClient = BerriesClient();
final berries = berriesClient.getBerryList(0, 20);
copied to clipboard
Next Steps #

Add tests
More flexible caching
More documentation

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.