SliverOpacityModifier constructor

const SliverOpacityModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. required double opacity,
  5. bool alwaysIncludeSemantics = false,
})

Creates a sliver that makes its sliver child partially transparent.

The opacity argument must not be null and must be between 0.0 and 1.0 (inclusive).

Implementation

const SliverOpacityModifier({
  super.key,
  super.modifierKey,
  super.child,
  required this.opacity,
  this.alwaysIncludeSemantics = false,
});