FadeTransition constructor Null safety

const FadeTransition(
  1. {Key? key,
  2. required Animation<double> opacity,
  3. bool alwaysIncludeSemantics = false,
  4. Widget? child}
)

Creates an opacity transition.

The opacity argument must not be null.

Implementation

const FadeTransition({
  super.key,
  required this.opacity,
  this.alwaysIncludeSemantics = false,
  super.child,
}) : assert(opacity != null);