animateIcon method

void animateIcon(
  1. bool state
)

Method used to animate the passed icon.

Implementation

void animateIcon(bool state) => state
    ? Future.microtask(() => _iconAnimationController.animateBack(1))
    : Future.microtask(() => _iconAnimationController.animateTo(0));