sectionWithId method

OrgTree? sectionWithId(
  1. String id
)

Find the section with the specified ID

Implementation

OrgTree? sectionWithId(String id) => ids.contains(id)
    ? this
    : _sectionSearch((section) => section.ids.contains(id));