isSelected method

bool isSelected(
  1. String path
)

Implementation

bool isSelected(String path) {
  final index = widget.router.tabs.indexWhere((e) => e.path == path);
  return tabController.index == index;
}