child method
The snapshot of the location at path below this one. path may have several segments
('a/b') and may name a list index ('0'). A missing child is a snapshot whose exists is
false. Throws an ArgumentError when path has a key with forbidden characters.
if (s.hasChild('profile/email')) {
print(s.child('profile/email').value);
}
Implementation
DataSnapshot child(String path) => DataSnapshot.internal(
ref.child(path),
_node.getChild(Path(path)),
priorityIndex,
);