collectionId property
String
get
collectionId
Returns the collection ID, which is the last segment in the collection path.
Implementation
String get collectionId {
if (collection == null || collection!.isEmpty) return '';
return collection!.last;
}