MediaSessionPositionState class

A representation of the current playback.

The dictionary parameter for MediaSession.setPositionState.

Annotations
  • @JS()
  • @anonymous

Constructors

MediaSessionPositionState({double? duration, double? playbackRate, double? position})
Creates the position state.
factory

Properties

duration double
Duration in seconds.
no setter
hashCode int
The hash code for this object.
no setterinherited
playbackRate double
Playback rate.
no setter
position double
Position in seconds.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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