opaque function

bool opaque(
  1. List<StxBottomNavBarItem> items,
  2. int? selectedIndex
)

Implementation

bool opaque(List<StxBottomNavBarItem> items, int? selectedIndex) {
  for (int i = 0; i < items.length; ++i) {
    if (items[i].opacity < 1.0 && i == selectedIndex) {
      return false;
    }
  }
  return true;
}