quotable 0.0.1 copy "quotable: ^0.0.1" to clipboard
quotable: ^0.0.1 copied to clipboard

A simple API Wrapper for https://github.com/lukePeavey/quotable

example/quotable_example.dart

import 'package:quotable/quotable.dart';

void main() async {
  listQuotes();
}

void randomQuote() async {
  final r = await getRandomQuote(author: 'johann-wolfgang-von-goethe');

  print(r.content);
  print(r.author);
}

void listQuotes() async {
  final r = await getQuotes(limit: 2, sortBy: SortByQuote.author);

  for (var item in r.results) {
    print(item.content);
  }
}

void listAuthors() async {
  final r = await getAuthors(limit: 3);

  print(r.count);
}

void authorByID() async {
  final r = await getAuthorByID('Bblz8Knp6-ZB');

  print(r.name);
}
0
likes
110
pub points
14%
popularity

Publisher

verified publisherjoshueabance.cf

A simple API Wrapper for https://github.com/lukePeavey/quotable

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on quotable