LiValue class
LiValue include the properties of a LiPlayer which update not frequently.
To get the updated value of other frequently updated properties, add listener of the value stream. See
Constructors
- LiValue({required bool prepared, required bool completed, required bool audioRenderStart, required bool videoRenderStart, required LiState state, required Size? size, required int rotate, required Duration duration, required bool fullScreen, required LiException exception})
-
A constructor requires all value.
const
- LiValue.uninitialized()
-
Construct LiValue with uninitialized value
const
Properties
- audioRenderStart → bool
-
Indicates if audio is started rendering
final
- completed → bool
-
Indicates if the player is completed
final
- duration → Duration
-
The current playback duration
final
- exception → LiException
-
final
- fullScreen → bool
-
whether if player should be displayed in full screen mode
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- prepared → bool
-
Indicates if the player is ready
final
- rotate → int
-
The rotation degrees
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size?
-
The pixel size of current video
final
- state → LiState
-
Current state of the player
final
- videoRenderStart → bool
-
Indicates if video is started rendering
final
Methods
-
copyWith(
{bool? prepared, bool? completed, bool? videoRenderStart, bool? audioRenderStart, LiState? state, Size? size, int? rotate, Duration? duration, bool? fullScreen, LiException? exception}) → LiValue - Return new LiValue which combines the old value and the assigned new value
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override