NyFader constructor

NyFader({
  1. Key? key,
  2. required Widget child,
  3. int strength = 1,
  4. Color color = Colors.black,
  5. List<AlignmentGeometry> alignment = const [Alignment.topCenter, Alignment.bottomCenter],
})

NyFader default constructor

Implementation

NyFader(
    {super.key,
    required this.child,
    this.strength = 1,
    this.color = Colors.black,
    this.alignment = const [Alignment.topCenter, Alignment.bottomCenter]}) {
  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');
}