ghTrendingRepositories function

Future<List<GithubRepoItem>> ghTrendingRepositories({
  1. String spokenLanguageCode = '',
  2. String programmingLanguage = '',
  3. String proxy = '',
  4. GhTrendDateRange dateRange = GhTrendDateRange.today,
  5. Map<String, String> headers = const {},
})

Load trending repositories from GitHub.

Parameters

spokenLanguageCode - use the provided ghSpokenLanguages map to access all spoken languages. You can use the map value for the UI and map key for the parameter.

programmingLanguage - use the provided ghProgrammingLanguages map to access all programming languages. You can use the map value for the UI and map key for the parameter.

dateRange - use the GhTrendDateRange enum to access all possible date range. Call the provided method ghDateRangeLabel(...) for displaying the value to the UI.

Implementation

Future<List<GithubRepoItem>> ghTrendingRepositories({
  String spokenLanguageCode = '',
  String programmingLanguage = '',
  String proxy = '',
  GhTrendDateRange dateRange = GhTrendDateRange.today,
  Map<String, String> headers = const {},
}) async {
  return _scraper.ghTrendingRepositories(
    spokenLanguageCode: spokenLanguageCode,
    programmingLanguage: programmingLanguage,
    proxy: proxy,
    dateRange: dateRange,
    headers: headers,
  );
}