containsPlayer method

bool containsPlayer({
  1. required String player_id,
})

Implementation

bool containsPlayer({required String player_id}) {
  try {
    players.singleWhere((element) => element.player_id == player_id);
    return true;
  } catch (e) {}
  return false;
}