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

outdated

A new Flutter package project.

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';

var episodeService = EpisodeService();

// This function will print all episode names on page 1
void allEpisodes() async {
  AllEpisodes episodes = await episodeClass.getAllEpisodes();
  for (Episode ep in episodes.results) {
    print(ep.name);
  }
}

Complete Usage #

The complete usage is in the example directory