LookupInSpec.get constructor

LookupInSpec.get(
  1. Object path, {
  2. bool? xattr,
})

Creates a LookupInSpec for fetching a field from the document.

path must be a String or LookupInMacro.

When xattr is true, this operation references the extended attribute data of the document. Otherwise, it references the document body. Defaults to false.

Implementation

factory LookupInSpec.get(Object path, {bool? xattr}) {
  return LookupInSpec._create(
    path == '' ? Opcode.getDoc : Opcode.get,
    path,
    xattr: xattr,
  );
}