GradientBorderBox constructor

const GradientBorderBox({
  1. Key? key,
  2. required double height,
  3. required double width,
  4. double radius = 10,
  5. double borderThickness = 2,
  6. required List<Color> gradientColors,
  7. Alignment begin = Alignment.topLeft,
  8. Alignment end = Alignment.bottomRight,
  9. Color backgroundColor = Colors.white,
  10. Widget? child,
  11. EdgeInsetsGeometry? margin,
})

Implementation

const GradientBorderBox({
  super.key,
  required this.height,
  required this.width,
  this.radius = 10,
  this.borderThickness = 2,
  required this.gradientColors,
  this.begin = Alignment.topLeft,
  this.end = Alignment.bottomRight,
  this.backgroundColor = Colors.white,
  this.child,
  this.margin,
});