Fade constructor

const Fade({
  1. required bool visible,
  2. required Widget child,
  3. Key? key,
  4. Duration duration = const Duration(milliseconds: 200),
  5. Curve curve = Curves.easeOut,
})

Hides and shows child Widget with a beautiful Curves.easeOut animation

Implementation

const Fade({
  required this.visible,
  required this.child,
  super.key,
  this.duration = const Duration(milliseconds: 200),
  this.curve = Curves.easeOut,
});