getPlayer method

  1. @override
GeneralLibraryPlayerControllerBaseDart? getPlayer({
  1. required String player_id,
})
override

Implementation

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