DrawConfig.def constructor
DrawConfig.def({
- required Type contentType,
- int angle = 0,
- int fingerCount = 0,
- Size? size,
- BlendMode blendMode = BlendMode.srcOver,
- Color color = Colors.red,
- ColorFilter? colorFilter,
- FilterQuality filterQuality = FilterQuality.high,
- ImageFilter? imageFilter,
- bool invertColors = false,
- bool isAntiAlias = false,
- MaskFilter? maskFilter,
- Shader? shader,
- StrokeCap strokeCap = StrokeCap.round,
- StrokeJoin strokeJoin = StrokeJoin.round,
- double strokeWidth = 4,
- PaintingStyle style = PaintingStyle.stroke,
Implementation
DrawConfig.def({
required this.contentType,
this.angle = 0,
this.fingerCount = 0,
this.size,
this.blendMode = BlendMode.srcOver,
this.color = Colors.red,
this.colorFilter,
this.filterQuality = FilterQuality.high,
this.imageFilter,
this.invertColors = false,
this.isAntiAlias = false,
this.maskFilter,
this.shader,
this.strokeCap = StrokeCap.round,
this.strokeJoin = StrokeJoin.round,
this.strokeWidth = 4,
this.style = PaintingStyle.stroke,
});