getPlayerForce method

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

Implementation

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