getPlayerState method

  1. @override
Future<PlayerStateSnapshot?> getPlayerState({
  1. String? playerId,
})
override

If playerId is null, this returns the primary player's state.

Implementation

@override
Future<PlayerStateSnapshot?> getPlayerState({String? playerId}) {
  return _pigeon.getPlayerState(playerId);
}