getColorBySelectedStatus method

Color getColorBySelectedStatus(
  1. int positionOfCurrentItem
)

Implementation

Color getColorBySelectedStatus(int positionOfCurrentItem){
  if( selectedIndex ==  positionOfCurrentItem) {
    return widget.indicatorColor;
  } else {
    return widget.unselectedLabelColor;
  }
}