getTranslucencyAmount function

double getTranslucencyAmount(
  1. List<StxBottomNavBarItem> items,
  2. int? selectedIndex
)

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;
}