SearchServices class

A service class for fetching URLs related to user queries, including YouTube video URLs and general URLs from Google search results

Constructors

SearchServices()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchUrls(String term, {int numResults = 40, String lang = 'en', Duration? sleepInterval, Duration? timeout, String? safe = 'active', String? region}) Future<List<String>>
Fetches a list of URLs from Google search results based on the provided term.
fetchYoutubeUrls(BuildContext context, String apiKey, {required String query}) Future<List<String>>
Fetches a list of YouTube video URLs based on the provided search query.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited