breaking_bad_quotes 1.0.2 copy "breaking_bad_quotes: ^1.0.2" to clipboard
breaking_bad_quotes: ^1.0.2 copied to clipboard

A Dart package which connects to https://breaking-bad-quotes.herokuapp.com and get the Breaking Bad quotes.

example/main.dart

import 'package:breaking_bad_quotes/breaking_bad_quotes.dart';

final _logger = injectLogger('breaking_bad_quotes');

/// An example on how to use the [BreakingBadQuotes] package.
///
/// This is just an example to show how to use the package.
///
/// To know more about the API go to
/// https://github.com/shevabam/breaking-bad-quotes.
void main() async {
  var breakingBad = BreakingBadQuotes();

  var singleQuote = await breakingBad.getQuotes();
  _logger.info(singleQuote.first.quote);

  var multipleQuote = await breakingBad.getQuotes(
    numberOfQuotes: 5,
  );
  _logger.info(multipleQuote);
}
1
likes
120
pub points
0%
popularity

Publisher

unverified uploader

A Dart package which connects to https://breaking-bad-quotes.herokuapp.com and get the Breaking Bad quotes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter_lints, http, logger

More

Packages that depend on breaking_bad_quotes