I have array of objects, I want to add new object when user enter new data in the array?

```
Firestore.instance.collection(city).document('Attractions').updateData(
                        "data", FieldValue.arrayUnion(obj)
                      );

```

This shows error, How can I achieve this with flutter?