PixelTriangleShape constructor
const
PixelTriangleShape({
- Key? key,
- required double size,
- required Color color,
- bool isStroked = false,
- Color? strokeColor,
- double strokeWidth = 2.0,
- ImageProvider<
Object> ? image, - BoxFit imageFit = BoxFit.cover,
- Alignment imageAlignment = Alignment.center,
- double imageScale = 1.0,
- Color? overlayColor,
- Gradient? gradient,
- BoxShadow? shadow,
- 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,
});