createColorFilterAnimation method

Animation<Color?>? createColorFilterAnimation()

Implementation

Animation<Color?>? createColorFilterAnimation() {
  if (flushbar.routeColor == null) return null;

  return ColorTween(begin: Colors.transparent, end: flushbar.routeColor)
      .animate(
    CurvedAnimation(
      parent: _controller!,
      curve: const Interval(
        0.0,
        0.35,
        curve: Curves.easeInOutCirc,
      ),
    ),
  );
}