VideoViewValue class
Represents the reactive state of a VideoViewPlayerController.
Constructors
- VideoViewValue({Duration duration = Duration.zero, Duration position = Duration.zero, Size size = Size.zero, bool isInitialized = false, bool isPlaying = false, bool isBuffering = false, bool isLooping = true, String? errorDescription})
-
Constructs a VideoViewValue snapshot with default or explicit values.
const
Properties
- aspectRatio → double
-
Calculated aspect ratio (width / height) or
9 / 16if uninitialized.no setter - duration → Duration
-
Total duration of the loaded video.
final
- errorDescription → String?
-
Description of any playback error encountered, or
nullif healthy.final - hasError → bool
-
True if an error description is present.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBuffering → bool
-
Whether the player is currently waiting for network data buffering.
final
- isInitialized → bool
-
Whether the native player has completed initial metadata loading.
final
- isLooping → bool
-
Whether the video automatically loops upon reaching the end.
final
- isPlaying → bool
-
Whether the video is currently actively playing.
final
- position → Duration
-
Current playback position of the video.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
Width and height dimensions of the video stream.
final
Methods
-
copyWith(
{Duration? duration, Duration? position, Size? size, bool? isInitialized, bool? isPlaying, bool? isBuffering, bool? isLooping, String? errorDescription}) → VideoViewValue - Creates a copy of VideoViewValue with updated fields.
-
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