forEach method

bool forEach(
  1. dynamic action(
    1. DataSnapshot
    )
)

Enumerates the top-level children of the DataSnapshot in their query-order. action is called for each child DataSnapshot.

Implementation

bool forEach(Function(DataSnapshot) action) {
  final actionWrap = allowInterop((d) => action(DataSnapshot.getInstance(d)));
  return jsObject.forEach(actionWrap);
}