getCurrentPosition method
Implementation
Future<Duration?> getCurrentPosition() async {
await creatingCompleter.future;
final milliseconds = await _platform.getCurrentPosition(playerId);
if (milliseconds == null) {
return null;
}
return Duration(milliseconds: milliseconds);
}