Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yash-garg/rickandmorty-dart-wrapper

Dart wrapper over https://rickandmortyapi.com/
https://github.com/yash-garg/rickandmorty-dart-wrapper

api-wrapper dart dartlang flutter rickandmortyapi wrapper

Last synced: 25 days ago
JSON representation

Dart wrapper over https://rickandmortyapi.com/

Awesome Lists containing this project

README

        

# The Rick and Morty API Dart Wrapper

This is a Dart wrapper to use the [The Rick and Morty API](https://rickandmortyapi.com)

**To get started check the documentation on [rickandmortyapi.com](https://rickandmortyapi.com/documentation)**

## Basic Usage

```dart
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 episodes = await episodeService.getAllEpisodes();
for (final episode in episodes) {
debugPrint(episode.name);
}
}
```

## Complete Usage

The complete usage is in the [example directory](https://github.com/Yash-Garg/RickandMorty-Dart-Wrapper/tree/main/example)