referenceURI property

Uri? referenceURI
getter/setter pair

A reference to another object in the same document.

This value is a path-only Uri. Each path segment is a key, starting at the document root this object belongs to. For example, the path '/components/all' would reference the object as returned by document['components']['all'].

Assign values to this property using the default Uri constructor and its path argument. This property is serialized as a Uri fragment, e.g. #/components/all.

Example:

    final object = new MyObject()
      ..referenceURI = Uri(path: "/other/object");
    archive.encodeObject("object", object);

Implementation

Uri? referenceURI;