getOpacity method

double getOpacity(
  1. int position
)

Implementation

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