createRoom method

Future<bool> createRoom(
  1. Game game, [
  2. String? password
])

Create a new room and join it.

Implementation

Future<bool> createRoom(Game game, [String? password]) async {
  if (_firebaseRoomCommunicator != null || _joiningRoom) return false;
  _joiningRoom = true;
  _firebaseRoomCommunicator = await FirebaseRoomCommunicator.createRoom(
      game: game, player: player, password: password);
  _joiningRoom = false;
  return true;
}