Slide 16
Slide 16 text
࣮
Copyright © ZOZO Technologies, Inc. All Rights Reserved.
Future postMessage(String groupId, String uid, String message, int type) async {
return await Firestore.instance
.collection("group")
.document(groupId)
.collection("message")
.add({
"uid": uid,
"message": message,
"type": type,
"created_at": FieldValue.serverTimestamp(),
});
}