You can use player.getCurrentPosition as the getPosition parameter.
player.getCurrentPosition
getPosition
PositionUpdater({ required this.getPosition, });