rick_and_morty_api 0.1.3 copy "rick_and_morty_api: ^0.1.3" to clipboard
rick_and_morty_api: ^0.1.3 copied to clipboard

Dart wrapper for The Rick and Morty API

The Rick and Morty API Dart Wrapper #

This is a Dart wrapper to use the The Rick and Morty API

To get started check the documentation on rickandmortyapi.com

Basic Usage #

import 'package:rick_and_morty_api/rick_and_morty_api.dart';

final episodeService = EpisodeService();

// This function will print all episode names
void allEpisodes() async {
  List<Episode> episodes = await episodeService.getAllEpisodes();
  for (final episode in episodes) {
    debugPrint(episode.name);
  }
}

Complete Usage #

The complete usage is in the example directory

3
likes
120
points
31
downloads

Publisher

verified publisheryashgarg.dev

Weekly Downloads

Dart wrapper for The Rick and Morty API

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, lints

More

Packages that depend on rick_and_morty_api