isPlayerAvailable method

Future<bool> isPlayerAvailable(
  1. String playerName
)

Check if a specific player is available

Implementation

Future<bool> isPlayerAvailable(String playerName) async {
  final players = await getAvailablePlayers();
  return players.contains(playerName);
}