getColorItemTextWhenSelectedOrNot method

Color? getColorItemTextWhenSelectedOrNot(
  1. int positionName
)

Implementation

Color? getColorItemTextWhenSelectedOrNot ( int positionName){
  var defaultColor = widget.textStyleItemDropdown != null ? widget.textStyleItemDropdown!.color :   widget.colorItemText;
  bool isSamePositionSelected = positionName ==  selected_position;
  if(isSamePositionSelected )  {
    // Log.i( "fastor - getColorItemTextWhenSelectedOrNot() - isSkipChangeColorSelected");
    return widget.colorItemTextSelected??defaultColor;
  }
  return defaultColor;
}