tabExpansionTile method

List<Widget> tabExpansionTile({
  1. required TabItem tabItem,
  2. required BuildContext context,
  3. required ValueNotifier<int> itemChildSelected,
})

Implementation

List<Widget> tabExpansionTile({
  required TabItem tabItem,
  required BuildContext context,
  required ValueNotifier<int> itemChildSelected,
}) {
  return List.generate(
    tabItem.children!.length,
    (index) {
      TabItem childTI = tabItem.children![index];
      return ListTileTheme(
        selectedColor: widget.selectedColor ?? Theme.of(context).primaryColor,
        child: tabTile(
          tabItem: childTI,
          context: context,
          index: index,
          itemChildSelected: itemChildSelected,
        ),
      );
    },
  );
}