addMatchmaker method

Future<MatchmakerTicket> addMatchmaker({
  1. required int minCount,
  2. int? maxCount,
  3. String? query,
  4. Map<String, double>? numericProperties,
  5. Map<String, String>? stringProperties,
})

Implementation

Future<rtpb.MatchmakerTicket> addMatchmaker({
  required int minCount,
  int? maxCount,
  String? query,
  Map<String, double>? numericProperties,
  Map<String, String>? stringProperties,
}) {
  assert(minCount >= 2);
  assert(maxCount == null || maxCount >= minCount);

  return _send(rtpb.Envelope(
      matchmakerAdd: rtpb.MatchmakerAdd(
    maxCount: maxCount,
    minCount: minCount,
    numericProperties: numericProperties,
    stringProperties: stringProperties,
    query: query,
  )));
}