ReadiumTimebasedState class

Implemented types
Annotations

Constructors

ReadiumTimebasedState({required TimebasedState state, Duration? currentOffset, Duration? currentBuffered, Duration? currentDuration, Duration? totalProgressDuration, Duration? totalDuration, Locator? currentLocator})
const
ReadiumTimebasedState.fromJson(Map<String, dynamic> map)
factory

Properties

currentBuffered → Duration?
Duration buffered of the current file.
final
currentDuration → Duration?
Total duration of the current file.
final
currentLocator → Locator?
Current Locator in the publication being played.
final
currentOffset → Duration?
Playback offset in the current audio file.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → TimebasedState
Current time-based player state.
final
totalDuration → Duration?
Total duration of the full publication.
final
totalProgressDuration → Duration?
Playback offset in the full publication, derived from total progression.
final

Methods

copyWith({Object state = unset, Object? currentOffset = unset, Object? currentBuffered = unset, Object? currentDuration = unset, Object? totalProgressDuration = unset, Object? totalDuration = unset, Object? currentLocator = unset}) → ReadiumTimebasedState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes the object to its JSON representation.
override
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJsonDynamic(dynamic json) → ReadiumTimebasedState?
fromJsonString(String jsonString) → ReadiumTimebasedState?