position property

Duration get position

Enables background audio playback when screen is closed Gets the current playback position.

Implementation

/// Gets the current playback position.
Duration get position => _player.state.position;