A flutter pacakge that returns random quote from a community contributed quotation repository.
quoter to the dependencies of the
dependencies: quoter: <latest version>
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;
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();
All quotes can also be accessed using the getter
// gets list of all quotes List<Quote> getAllQuotes = quoter.getAllQuotes;
Do you have a favorite quote? Contribute to this repo and share it with all of us. :smile:
Read the guide for more details.