SliverAnimatedOpacityModifier constructor

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

Creates a widget that animates its opacity implicitly.

The opacity argument must not be null and must be between 0.0 and 1.0, inclusive. The curve and duration arguments must not be null.

Implementation

const SliverAnimatedOpacityModifier({
  super.key,
  Widget? sliver,
  super.curve,
  required super.duration,
  super.onEnd,
  super.modifierKey,
  required this.opacity,
  this.alwaysIncludeSemantics = false,
}) : super(
        child: sliver,
      );