fadeOut method

Widget fadeOut({
  1. double start = 1,
  2. double end = 0,
})

Applies an OpacityEffect to a Widget with a default fade out animation.

Implementation

Widget fadeOut({double start = 1, double end = 0}) {
  return EffectWidget(
    start: OpacityEffect(opacity: start),
    end: OpacityEffect(opacity: end),
    child: this,
  );
}