SliverAnimatedOpacity constructor

const SliverAnimatedOpacity(
  1. {Key? key,
  2. Widget? sliver,
  3. required double opacity,
  4. Curve curve = Curves.linear,
  5. required Duration duration,
  6. VoidCallback? onEnd,
  7. bool alwaysIncludeSemantics = false}
)

Creates a widget that animates its opacity implicitly.

The opacity argument must be between zero and one, inclusive.

Implementation

const SliverAnimatedOpacity({
  super.key,
  this.sliver,
  required this.opacity,
  super.curve,
  required super.duration,
  super.onEnd,
  this.alwaysIncludeSemantics = false,
}) : assert(opacity >= 0.0 && opacity <= 1.0);