OpacityTransition constructor

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

It is a FadeTransition but this will be shown when receiving a Boolean value.

Implementation

const OpacityTransition({
  Key? key,
  required this.visible,
  required this.child,
  this.duration = const Duration(milliseconds: 200),
  this.curve = Curves.linear,
}) : super(key: key);