VideoPlaybackValue class

A snapshot of playback that a PaymentVideoController publishes.

Annotations

Constructors

VideoPlaybackValue({VideoPhase phase = VideoPhase.idle, Duration position = Duration.zero, Duration duration = Duration.zero, bool muted = false, double? aspectRatio, String? errorMessage})
const

Properties

aspectRatio → double?
Width / height of the decoded video, once known.
final
duration → Duration
final
errorMessage → String?
Safe, user-facing message. Never a raw player or network error.
final
hashCode → int
The hash code for this object.
no setterinherited
isPlaying → bool
no setter
muted → bool
final
phase → VideoPhase
final
position → Duration
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({VideoPhase? phase, Duration? position, Duration? duration, bool? muted, double? aspectRatio, String? errorMessage()?}) → VideoPlaybackValue
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