linksWithRole method
Returns the links of the first child PublicationCollection with the given role, or an empty list.
Implementation
List<Link> linksWithRole(String role) =>
subcollections[role]?.firstOrNull?.links ?? [];
Returns the links of the first child PublicationCollection with the given role, or an empty list.
List<Link> linksWithRole(String role) =>
subcollections[role]?.firstOrNull?.links ?? [];