Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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/
- Host: GitHub
- URL: https://github.com/yash-garg/rickandmorty-dart-wrapper
- Owner: Yash-Garg
- License: mit
- Created: 2021-08-06T08:06:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T08:45:36.000Z (7 months ago)
- Last Synced: 2024-10-01T16:40:05.732Z (about 1 month ago)
- Topics: api-wrapper, dart, dartlang, flutter, rickandmortyapi, wrapper
- Language: Dart
- Homepage: https://pub.dev/packages/rick_and_morty_api
- Size: 110 KB
- Stars: 19
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)