getPlayer method

GeneralLibraryPlayerControllerBase? getPlayer({
  1. required String player_id,
})

Implementation

GeneralLibraryPlayerControllerBase? getPlayer({required String player_id}) {
  try {
    return players.singleWhere((element) => element.player_id == player_id);
  } catch (e) {}
  return null;
}