getScraper static method

BaseScraper getScraper(
  1. String state,
  2. Document document
)

Implementation

static BaseScraper getScraper(String state, Document document) {
  if (!_scrapers.containsKey(state)) {
    throw Exception('Scraper for state $state not implemented!');
  }
  return _scrapers[state]!(document);
}