SectionTabs constructor

const SectionTabs({
  1. Key? key,
  2. required List<SectionTab> tabs,
  3. required String activeId,
  4. required ValueChanged<String> onChanged,
  5. SectionTabsSize size = SectionTabsSize.md,
  6. bool fullWidth = false,
})

Implementation

const SectionTabs({
  super.key,
  required this.tabs,
  required this.activeId,
  required this.onChanged,
  this.size = SectionTabsSize.md,
  this.fullWidth = false,
}) : assert(
       tabs.length >= 2 && tabs.length <= 4,
       'SectionTabs supports 2–4 segments',
     );