handleSetMessageMap method

dynamic handleSetMessageMap(
  1. dynamic messageInfo
)

Implementation

handleSetMessageMap(messageInfo) {
  String id = (currentTimeMillis()).toString();
  messageInfo["id"] = id;

  Map<String, dynamic> resultMap = {"messageInfo": messageInfo, "id": id};
  messageIDMap[id] = resultMap;

  return resultMap;
}