NyFader.top constructor
NyFader.top({
- required Widget child,
- Color color = Colors.black,
- int strength = 1,
- List<
AlignmentGeometry> alignment = const [Alignment.bottomCenter, Alignment.topCenter],
NyFader from top to bottom
Implementation
NyFader.top(
{required this.child,
this.color = Colors.black,
this.strength = 1,
this.alignment = const [Alignment.bottomCenter, Alignment.topCenter]}) {
assert(strength >= 1 && strength <= 5, 'strength must be between 1 and 5');
assert(alignment.length == 2,
'alignment must be a list of 2 AlignmentGeometry objects');
}