sendCustomCommand method

Future<Map> sendCustomCommand(
  1. String roomID,
  2. String message,
  3. List toUserList
)

Implementation

Future<Map<dynamic, dynamic>> sendCustomCommand(
    String roomID, String message, List toUserList) async {
  List useridList = [];
  for (var item in toUserList) {
    useridList.add(item["userID"]);
  }
  await ZegoFlutterEngine.instance
      .sendCustomCommand(roomID, message, useridList);
  final Map<dynamic, dynamic> map = {};
  map["errorCode"] = 0;
  map["messageID"] = 0;

  return Future.value(map);
}