child method

Reference child(
  1. String path
)

Creates a child reference from the given path.

Parameters:

  • path: The child path.

Returns: A new child Reference.

Example:

var childRef = ref.child('subfolder/image.jpg');

Implementation

Reference child(String path) {
  if (path == "") return this;
  var childPath = "$fullPath/$path";
  if (fullPath == "") {
    childPath = "$path";
  }
  return Reference(storage: storage, fullPath: childPath, parent: this);
}