fadeIn method

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

Animates the ambient color from fully transparent to color.

Implementation

@override
void fadeIn(
  Color color, {
  Duration duration = const Duration(milliseconds: 500),
  Curve curve = Curves.decelerate,
}) {
  this.color = color.withValues(alpha: 0);
  animateToColor(color, duration: duration, curve: curve);
}