createColorFilterAnimation method

Animation<Color?>? createColorFilterAnimation()

Implementation

Animation<Color?>? createColorFilterAnimation() {
  // ignore: unnecessary_null_comparison
  if (richbar.backgroundOpaque == null) return null;
  return ColorTween(
          begin: Colors.transparent, end: richbar.blockInteractionColor)
      .animate(
    CurvedAnimation(
      parent: _animationController!,
      curve: const Interval(0.0, 0.35, curve: Curves.easeInOutCirc),
    ),
  );
}