getOpacity method

double getOpacity(
  1. double start,
  2. double end
)

Implementation

double getOpacity(double start, double end) {
          print(animationLogo.value);
          if (animationLogo.value >= start && animationLogo.value <= end) {
            return animationLogo.value- start;
          } else if (animationLogo.value < start) {
            return 0.0;
          } else {
            return 1.0;
          }
  }