Search class

This class handles the searching. Taking the base URL we build any parameters that have been added before making a call to iTunes. The results are unpacked and stored as Item instances and wrapped in a SearchResult.

Constructors

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchProvider SearchProvider
final
term String
Returns the search term.
no setter
timeout int
Connection timeout threshold in milliseconds
getter/setter pair
userAgent String
If this property is non-null, it will be prepended to the User Agent header.
getter/setter pair

Methods

charts({Country country = Country.none, String language = '', int limit = 20, bool explicit = false, String genre = '', Map<String, dynamic> queryParams = const {}}) Future<SearchResult>
Fetches the list of top podcasts Optionally takes a limit and Country filter. Defaults to limit of 20 and no specified country.
genres() List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Search iTunes using the term term. You can limit the results to podcasts available in a specific country by supplying a Country option. By default, searches will be based on keywords. Supply an Attribute value to search by a different attribute such as Author, genre etc.
toString() String
A string representation of this object.
inherited

Operators

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