WebSearchConfig.news constructor

WebSearchConfig.news({
  1. int maxResults = 10,
  2. String? fromDate,
  3. String? toDate,
})

Create a news search configuration

Implementation

factory WebSearchConfig.news({
  int maxResults = 10,
  String? fromDate,
  String? toDate,
}) =>
    WebSearchConfig(
      maxResults: maxResults,
      fromDate: fromDate,
      toDate: toDate,
      mode: 'auto',
      searchType: WebSearchType.news,
    );