getQuoteByID function

Future<Quote> getQuoteByID(
  1. String id
)

Get a quote by its ID

Implementation

Future<Quote> getQuoteByID(String id) async {
  final endpoint = ListQuote.endpoint + '/$id';

  final r = await requestHandler(endpoint);

  return Quote.fromJson(r);
}