
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/7cd96302-8fab-429b-aa3e-c380ae1eee39o%40googlegroups.com.
Why not use a map instead an array?
On Tue, Jul 7, 2020, 9:43 PM Tililweet <fordhig...@gmail.com> wrote:
Hi all, so I want to update the map entry of the circled element to another number:--
This is what I got so far:var val = [];val.add(groupUID);var userInviteUID;await users.document(uid).get().then((value) => userInviteUID = value.data['inviteUID']);await invites.document(userInviteUID).updateData({'invites': FieldValue.arrayUnion(val: 2 )});So the last 2 lines of the snippet is what I need help on...I thought this would work but it complains about missing arguments(Also not sure why val needs to be a list so I just changed it.). I'd appreciate any help on this, thanks!
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/cc7225ee-3489-48ed-9e47-801bff833540o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/cc7225ee-3489-48ed-9e47-801bff833540o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/551b9555-b634-4a98-8a4d-48a51b523921o%40googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/551b9555-b634-4a98-8a4d-48a51b523921o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/6dfd8b37-bc3e-4b77-8d57-2398fd80b8bao%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/6dfd8b37-bc3e-4b77-8d57-2398fd80b8bao%40googlegroups.com.
Returns a special value that tells the server to union the given elements with any array value that already exists on the server.Each specified element that doesn't already exist in the array will be added to the end.