Video class

Video class that represents a YouTube video with a player controller.

Constructors

Video({required String videoId, String? captionLanguageCode, bool setLoop = false})

Properties

captionLanguageCode String?
Stores the caption language code (optional).
final
controller ↔ VideoPlayerController?
Stores the video player controller (optional).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setLoop bool
Indicates whether the video should loop.
final
videoId String
Stores the ID of the YouTube video to be played.
final

Methods

dispose() Future<void>
Asynchronous method to dispose of the video player controller and free resources.
loadController() Future<void>
Asynchronous method to load and initialize the video controller.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Override the toString method to provide a string representation of the Video object.
override

Operators

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