Slide 29
Slide 29 text
[Frontend] σʔλWrite(ྫ)
Future _updateData(Todo todo, String userId) {
return Firestore.instance
.collection(COLLECTION_USERS_GROUP)
.document(userId)
.collection(COLLECTION_USERS_DATA)
.document()
.setData({
COLUMN_ICON_ID: todo.iconId,
COLUMN_NOTIFICATION_ID: todo.notificationId,
COLUMN_TITLE: todo.title,
COLUMN_CONTENT: todo.content,
COLUMN_DATE: todo.date,
COLUMN_ISSTARRED: todo.isStarred,
COLUMN_ISDONE: todo.isDone,
COLUMN_ISREMIND: todo.isRemind,
COLUMN_CREATEDAT: FieldValue.serverTimestamp()
});
}