tabExpansionTile method
List<Widget>
tabExpansionTile({
- required TabItem tabItem,
- required BuildContext context,
- 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,
),
);
},
);
}