VideoPlayerValueIns class

Inheritance
  • Object
  • VideoPlayerValue
  • VideoPlayerValueIns
Implemented types

Constructors

VideoPlayerValueIns(Duration duration, bool isPlaying, bool isLooping, bool isBuffering, bool isInitialized, Caption caption, Duration position, Size size, double volume)
const

Properties

aspectRatio → double
Returns size.width / size.height.
no setterinherited
buffered → List<DurationRange>
The currently buffered ranges.
finalinherited
caption → Caption
The Caption that should be displayed based on the current position.
finalinherited
captionOffset → Duration
The Duration that should be used to offset the current position to get the correct Caption.
finalinherited
duration → Duration
The total duration of the video.
finalinherited
errorDescription → String?
A description of the error if present.
finalinherited
hasError → bool
Indicates whether or not the video is in an error state. If this is true errorDescription should have information about the problem.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isBuffering → bool
True if the video is currently buffering.
finalinherited
isCompleted → bool
True if video has finished playing to end.
finalinherited
isInitialized → bool
Indicates whether or not the video has been loaded and is ready to play.
finalinherited
isLooping → bool
True if the video is looping.
finalinherited
isPlaying → bool
True if the video is playing. False if it's paused.
finalinherited
playbackSpeed → double
The current speed of the playback.
finalinherited
position → Duration
The current playback position.
finalinherited
preventsDisplaySleepDuringVideoPlayback → bool
Whether the screen is prevented from sleeping during video playback.
finalinherited
rotationCorrection → int
Degrees to rotate the video (clockwise) so it is displayed correctly.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
The size of the currently loaded video.
finalinherited
volume → double
The current volume of the playback.
finalinherited

Methods

copyWith({Duration? duration, Size? size, Duration? position, Caption? caption, Duration? captionOffset, List<DurationRange>? buffered, bool? isInitialized, bool? isPlaying, bool? isLooping, bool? isBuffering, double? volume, double? playbackSpeed, int? rotationCorrection, String? errorDescription = _defaultErrorDescription, bool? isCompleted, bool? preventsDisplaySleepDuringVideoPlayback}) → VideoPlayerValue
Returns a new instance that has the same values as this current instance, except for any overrides passed in as arguments to copyWith.
inherited
get(Token name) → Object?
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