refFromURL method

Reference refFromURL(
  1. String url
)

Creates a new Reference from a URL.

Parameters:

  • url: The full URL to the object.

Returns: A Reference object.

Example:

var ref = storage.refFromURL('https://objectstorage.region.oraclecloud.com/n/ns/b/bucket/o/images/stars.jpg');

Implementation

Reference refFromURL(String url) {
  final parts = _parseReferenceURL(url);
  final ref = Reference(storage: this, fullPath: parts.fullPath);
  ref._bucket = parts.bucket;
  return ref;
}