hasChild method

bool hasChild(
  1. String path
)

Whether the location at path below this one holds data; path may have several segments. Throws an ArgumentError when path has a key with forbidden characters.

Implementation

bool hasChild(String path) {
  validatePathString('DataSnapshot.hasChild', 'path', path);
  return !_node.getChild(Path(path)).isEmpty;
}