SliverOpacity constructor

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

Creates a sliver that makes its sliver child partially transparent.

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

Implementation

const SliverOpacity({
  super.key,
  required this.opacity,
  this.alwaysIncludeSemantics = false,
  Widget? sliver,
}) : assert(opacity >= 0.0 && opacity <= 1.0),
     super(child: sliver);