fadeOut method
void
fadeOut({})
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,
);
}