activeSection property

String? get activeSection

Implementation

String? get activeSection {
  final index = activeSectionIndex.value;
  return (index >= 0 && index < _sectionItems.length)
      ? _sectionItems[index].section
      : null;
}