FadeOverlay constructor

const FadeOverlay({
  1. Key? key,
  2. required Widget child,
  3. double strength = 0.2,
  4. Color color = Colors.black,
  5. AlignmentGeometry begin = Alignment.topCenter,
  6. AlignmentGeometry end = Alignment.bottomCenter,
})

Implementation

const FadeOverlay({
  super.key,
  required this.child,
  this.strength = 0.2,
  this.color = Colors.black,
  this.begin = Alignment.topCenter,
  this.end = Alignment.bottomCenter,
}) : assert(
       strength >= 0.0 && strength <= 1.0,
       'strength must be between 0.0 and 1.0',
     );