PixelTriangleShape constructor

const PixelTriangleShape({
  1. Key? key,
  2. required double size,
  3. required Color color,
  4. bool isStroked = false,
  5. Color? strokeColor,
  6. double strokeWidth = 2.0,
  7. ImageProvider<Object>? image,
  8. BoxFit imageFit = BoxFit.cover,
  9. Alignment imageAlignment = Alignment.center,
  10. double imageScale = 1.0,
  11. Color? overlayColor,
  12. Gradient? gradient,
  13. BoxShadow? shadow,
  14. VoidCallback? onTap,
})

Implementation

const PixelTriangleShape({
  super.key,
  required this.size,
  required this.color,
  this.isStroked = false,
  this.strokeColor,
  this.strokeWidth = 2.0,
  this.image,
  this.imageFit = BoxFit.cover,
  this.imageAlignment = Alignment.center,
  this.imageScale = 1.0,
  this.overlayColor,
  this.gradient,
  this.shadow,
  this.onTap,
});