getPosition method
Get current playback position in microseconds
Implementation
Future<int?> getPosition() async {
try {
final player = _state.selectedPlayer.isNotEmpty
? _state.selectedPlayer
: null;
return await _service.getPosition(player);
} catch (e) {
debugPrint('Error getting position: $e');
return null;
}
}