Flutter, Flutter App Development, Data Structures, Algorithms.
); } else { return ExpansionTile( leading: Icon(item.icon), title: Text(item.title), children: item.children.map((child) => _buildNavItem(context, child)).toList(), ); } } @override Widget build(BuildContext context) { return Drawer( child: ListView( children: [ _buildNavItem(context, navTree), ],