FadeOverlay constructor
const
FadeOverlay({
- Key? key,
- required Widget child,
- double strength = 0.2,
- Color color = Colors.black,
- AlignmentGeometry begin = Alignment.topCenter,
- 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',
);