searchForExamples function

Future<ExampleResults> searchForExamples(
  1. String phrase
)

Scrape Jisho.org for examples.

Implementation

Future<ExampleResults> searchForExamples(String phrase) async {
  final uri = uriForExampleSearch(phrase);
  return http
      .get(uri)
      .then((response) => parseExamplePageData(response.body, phrase));
}