DrawConfig class

绘制参数

Constructors

DrawConfig({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})
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})

Properties

angle int
旋转的角度(0:0,1:90,2:180,3:270)
final
blendMode BlendMode
Paint相关
final
color Color
final
colorFilter ColorFilter?
final
contentType Type
final
filterQuality FilterQuality
final
fingerCount int
final
hashCode int
The hash code for this object.
no setterinherited
imageFilter ImageFilter?
final
invertColors bool
final
isAntiAlias bool
final
maskFilter MaskFilter?
final
paint Paint
生成paint
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shader Shader?
final
size Size?
final
strokeCap StrokeCap
final
strokeJoin StrokeJoin
final
strokeWidth double
final
style PaintingStyle
final

Methods

copyWith({Type? contentType, BlendMode? blendMode, Color? color, ColorFilter? colorFilter, FilterQuality? filterQuality, ImageFilter? imageFilter, bool? invertColors, bool? isAntiAlias, MaskFilter? maskFilter, Shader? shader, StrokeCap? strokeCap, StrokeJoin? strokeJoin, double? strokeWidth, PaintingStyle? style, int? angle, int? fingerCount, Size? size}) DrawConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited