The Dart equivalent to code you posted would look like this:
Firestore.instance.collection('users')
.where('name', isEqualTo: 'Daniel')
.getDocuments()
.then((querySnapshot) {
querySnapshot.documents.forEach((documentSnapshot) {
documentSnapshot.reference.updateData({ ... });
});
});