pikadart 1.1.0 copy "pikadart: ^1.1.0" to clipboard
pikadart: ^1.1.0 copied to clipboard

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 ma [...]

example/main.dart

import 'package:pikadart/pikadart.dart';

void main() async {
  // Use the general client with default memory cache strategy
  final pokeapiClient = PokeApiClient();
  // Or use a specific cache strategy
  final customPokeapiClient =
      PokeApiClient(cacheStrategy: MemoryCacheStrategy(ttl: Duration(days: 1)));

  // Get pikachu data
  final pikachu = await pokeapiClient.pokemon.getPokemonByName('pikachu');

  // Or use a specified client
  final berriesClient = BerriesClient();
  // Get a paginated list of berries
  final berries = berriesClient.getBerryList(0, 20);
}
1
likes
150
points
178
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

http

More

Packages that depend on pikadart