sectionTags method

  1. @override
List<SbomSpdxTag> sectionTags(
  1. String section
)
override

Get all tags for a specified section in section position order.

Implementation

@override
List<SbomSpdxTag> sectionTags(String section) {
  var selection = tags.where((e) => e.section == section).toList();
  selection.sort((a, b) => a.position.compareTo(b.position));

  return selection;
}