double getOpacity(int position){ if(position==keyArray.length-1){ return 1; } return animation.value==null?1:animation.value; }