getGameResponse method

Either<CheckResultFailure, dynamic> getGameResponse(
  1. Map<String, dynamic> request
)

Return either a value or failure based on the given request.

Implementation

Either<CheckResultFailure, dynamic> getGameResponse(
    Map<String, dynamic> request) {
  if (_firebaseRoomCommunicator == null) {
    throw Exception("A room has not been joined.");
  }
  return _firebaseRoomCommunicator!.getGameResponse(request);
}