Skip to content

Commit

Permalink
Add OrgSection.tags convenience accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
amake committed Sep 7, 2024
1 parent 44d19b4 commit bef22de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/org/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ class OrgSection extends OrgTree {
]);
final OrgHeadline headline;

/// The section's tags. Convenience accessor for tags of [headline].
List<String> get tags => headline.tags?.values ?? const [];

@override
List<OrgNode> get children => [headline, ...super.children];

Expand Down

0 comments on commit bef22de

Please sign in to comment.