todo.value.data()['isDone'] = !original; todo.value.reference.update({'isDone': !original});
위 코드는 로컬 데이터의 값을 변경, 아래 코드는 서버 데이터의 값을 변경