Last updated:
0 purchases
quoter
Quoter #
A flutter pacakge that returns random quote from a community contributed quotation repository.
Getting started #
Simply add quoter to the dependencies of the pubspec.yaml
dependencies:
quoter: <latest version>
copied to clipboard
Usage #
The package return quote in the form of Quote model. A Quote consist of two string values.
// the quote itself
final String quotation;
// the person with whom the quote is associated with
final String quotee;
copied to clipboard
To use the package create instance of the Quoter class than use method getRandomQuote() to get a random quote.
Quoter quoter = Quoter();
// gets a random quote
Quote randomQuote = quoter.getRandomQuote();
copied to clipboard
All quotes can also be accessed using the getter getAllQuotes.
// gets list of all quotes
List<Quote> getAllQuotes = quoter.getAllQuotes;
copied to clipboard
Contribution #
Do you have a favorite quote? Contribute to this repo and share it with all of us. 😄
Read the guide for more details.
Maintainers #
Muhammad Idrees
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.