linksWithRole method

List<Link> linksWithRole(
  1. String role
)

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 ?? [];