SliverFadeTransition constructor Null safety

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

Creates an opacity transition.

The opacity argument must not be null.

Implementation

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