GitHunt
YA

yash-garg/RickandMorty-Dart-Wrapper

Dart wrapper over https://rickandmortyapi.com/

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

Languages

Dart97.7%Swift1.6%Kotlin0.5%Objective-C0.2%

Contributors

MIT License
Created August 6, 2021
Updated August 7, 2025