containsPlayer method

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

Implementation

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