I'm creating a android app using flutter and Firebase Firestore. I would like to add that new FieldValue.increment functionality which is apperently available in Firebase since this april but i've got an error: The method 'increment' isn't defined for the class 'FieldValue'.
Here is my code that i've tried:
onTap: (){ Firestore.instance.document('docRef').updateData({"numberOfDocs": FieldValue.increment(1)}); } I'm just a beginner programmer but when i checked that field_value.dart file it's missing "increment" implementation. So, is it right answer to say that flutter team didn't yet implemented that functionality?
I've seen a tutorial where increment is already used in some .js code but for me it's not working. https://www.youtube.com/watch?v=8Ejn1FLRRaw