VideoOptions class

Inheritance

Constructors

VideoOptions({Set<VideoPart> parts = const {VideoPart.snippet}, Chart? chart, List<String>? id, MyRating? myRating, int? maxResults, String? onBehalfOfContentOwner, String? pageToken, String? regionCode, String? hl, int? maxHeight, String? maxWidth})
const

Properties

chart Chart?
final
hashCode int
The hash code for this object.
no setterinherited
hl String?
The hl parameter instructs the API to retrieve localized resource metadata for a specific[application language that the YouTube website supports. The parameter value must be a language code included in the list returned by the i18nLanguages.list method.
finalinherited
id List<String>?
The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) that are being retrieved. In a video resource, the id property specifies the video's ID.
finalinherited
maxHeight int?
The maxHeight parameter specifies the maximum height of the embedded player returned in the player.embedHtml property. You can use this parameter to specify that instead of the default dimensions, the embed code should use a height appropriate for your application layout. If the maxWidth parameter is also provided, the player may be shorter than the maxHeight in order to not violate the maximum width. Acceptable values are 72 to 8192, inclusive.
final
maxResults int?
The maxResults parameter specifies the maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 5.
finalinherited
maxWidth String?
The maxWidth parameter specifies the maximum width of the embedded player returned in the player.embedHtml property. You can use this parameter to specify that instead of the default dimensions, the embed code should use a width appropriate for your application layout.
final
myRating MyRating?
final
onBehalfOfContentOwner String?
This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
finalinherited
pageToken String?
The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
finalinherited
parts Set<VideoPart>
final
regionCode String?
The regionCode parameter instructs the API to return search results for videos that can be viewed in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Set<VideoPart>? parts, int? maxResults, String? onBehalfOfContentOwner, String? pageToken, String? regionCode, Chart? chart, List<String>? id, MyRating? myRating, String? hl, int? maxHeight, String? maxWidth}) VideoOptions
getMap(String key) Map<String, String>
override
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