CastBreak class

Represents a break (e.g. ad break) included in the main video.

Constructors

CastBreak({required List<String> breakClipIds, Duration? duration, required String id, required bool isEmbedded, required bool isWatched, required int position})
Creates a new CastBreak instance.
CastBreak.fromJson(String source)
Creates a CastBreak from a JSON string.
factory
CastBreak.fromMap(Map<String, dynamic> map)
Creates a CastBreak from a map representation.
factory

Properties

breakClipIds → List<String>
List of break clip IDs included in this break.
final
duration → Duration?
Duration of break in seconds.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique ID of a break.
final
isEmbedded → bool
Indicates whether the break is embedded in the main stream.
final
isWatched → bool
Whether a break was watched. This is marked as true when the break begins to play. A sender can change color of a progress bar marker corresponding to this break once this field changes from false to true denoting that the end-user already watched this break.
final
position → int
Location of the break inside the main video. -1 represents the end of the main video in seconds.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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