forEach method

void forEach(
  1. dynamic callback(
    1. DocumentSnapshot
    )
)

Enumerates all of the documents in the QuerySnapshot.

Implementation

void forEach(Function(DocumentSnapshot) callback) {
  final callbackWrap =
      allowInterop((s) => callback(DocumentSnapshot.getInstance(s)));
  return jsObject.forEach(callbackWrap);
}