length property
int?
get
length
Returns the length of entities of this EntityReferenceList. See entities and ids.
Implementation
int? get length {
var ids = _ids;
var entities = _entities;
if (ids == null && entities == null) {
return null;
}
if (ids != null && entities != null) {
assert(ids.length == entities.length);
return ids.length;
}
if (ids != null) {
return ids.length;
}
if (entities != null) {
return entities.length;
}
return null;
}