getTranslucencyAmount function
Implementation
double getTranslucencyAmount(
List<StxBottomNavBarItem> items, int? selectedIndex) {
for (int i = 0; i < items.length; ++i) {
if (items[i].opacity < 1.0 && i == selectedIndex) {
return items[i].opacity;
}
}
return 1.0;
}