path property

String get path

The full path of the reference. If it ends with "/", it's a path to a collection, otherwise it's a path to a document.

Implementation

String get path {
  if (collectionPath == null) {
    throw StateError(
      '[DataRefModelExtension] Invalid path: Collection path cannot be empty.',
    );
  }
  return '$collectionPath${id ?? ''}';
}