getListLength method
Implementation
Danger<int, PropertyTableExceptionE> getListLength(PropertyName listPropertyName) {
final log = Log(classLocation: runtimeType, functionLocation: 'getListLength');
final getByPrimaryKeyResult = listPropertyRoster.getByPrimaryKey(listPropertyName);
log.add(getByPrimaryKeyResult);
if (getByPrimaryKeyResult is! Success<ListProperty, RosterPatternExceptionB>) return Failure(PropertyTableExceptionE(), log.monitor({
'the property name': listPropertyName.value,
'list of existing list property name': listPropertyRoster.nameList.toPrimitive(),
}));
return Success(getByPrimaryKeyResult.wrapped.value.length, log);
}