child method

DatabaseReference? child(
  1. String? path
)

Gets a DatabaseReference for the location at the specified relative path. The relative path can either be a simple child key (e.g. ‘fred’) or a deeper slash-separated path (e.g. ‘fred/name/first’).

Implementation

DatabaseReference child(String path) {
  return DatabaseReference._(_database,
      (List<String>.from(_pathComponents)..addAll(path.split('/'))));
}