animateIcon method
Method used to animate the passed icon.
Implementation
void animateIcon(bool state) => state
? Future.microtask(() => _iconAnimationController.animateBack(1))
: Future.microtask(() => _iconAnimationController.animateTo(0));