SearchResult class

A search result contains information about a YouTube video, channel, or playlist that matches the search parameters specified in an API request.

While a search result points to a uniquely identifiable resource, like a video, it does not have its own persistent data.

Constructors

SearchResult({String? etag, ResourceId? id, String? kind, SearchResultSnippet? snippet})
SearchResult.fromJson(Map json_)

Properties

etag String?
Etag of this resource.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id ResourceId?
The id object contains information that can be used to uniquely identify the resource that matches the search request.
getter/setter pair
kind String?
Identifies what kind of resource this is.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snippet SearchResultSnippet?
The snippet object contains basic details about a search result, such as its title or description.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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