startAnimation method Null safety

void startAnimation()

Implementation

void startAnimation() {
  isAnimationStarted = true;
  notifyListeners();
}