createPlayer method

GeneralLibraryPlayerControllerBase createPlayer({
  1. required String player_id,
})

Implementation

GeneralLibraryPlayerControllerBase createPlayer({
  required String player_id,
}) {
  GeneralLibraryPlayerControllerBase generalLibraryPlayerControllerBaseDart =
      GeneralLibraryPlayerControllerBase(
    player_id: player_id,
  );
  players.add(
    generalLibraryPlayerControllerBaseDart,
  );
  return generalLibraryPlayerControllerBaseDart;
}