GradientMask constructor

const GradientMask({
  1. Key? key,
  2. required Widget child,
  3. Gradient gradient = const LinearGradient(colors: [Colors.transparent, Colors.black], begin: Alignment.topCenter, end: Alignment.bottomCenter),
  4. BlendMode blendMode = BlendMode.srcIn,
})

Implementation

const GradientMask({
  super.key,
  required this.child,
  this.gradient = const LinearGradient(
    colors: [Colors.transparent, Colors.black],
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
  ),
  this.blendMode = BlendMode.srcIn,
});