fadeOut method

  1. @override
void fadeOut({
  1. Duration duration = const Duration(milliseconds: 500),
  2. Curve curve = Curves.decelerate,
})
override

Animates the ambient color to fully transparent.

Implementation

@override
void fadeOut({
  Duration duration = const Duration(milliseconds: 500),
  Curve curve = Curves.decelerate,
}) {
  final current = color;
  if (current == null) {
    return;
  }
  animateToColor(
    current.withValues(alpha: 0),
    duration: duration,
    curve: curve,
  );
}