WhiteRook constructor
WhiteRook({
- double size = 45.0,
- dynamic fillColor = Colors.white,
- dynamic strokeColor = Colors.black,
size (double) : default to 45.0
Implementation
WhiteRook({
double size = 45.0,
this.fillColor = Colors.white,
this.strokeColor = Colors.black,
}) : super(
baseImageSize: 45.0,
requestSize: size,
painter: VectorImagePainter(
vectorDefinition: <VectorDrawableElement>[
VectorImageGroup(
children: <VectorDrawableElement>[
VectorImagePathDefinition(
path: "M 9,39 L 36,39 L 36,36 L 9,36 L 9,39 z ",
drawingParameters: DrawingParameters(
strokeLineCap: StrokeCap.butt,
),
),
VectorImagePathDefinition(
path: "M 12,36 L 12,32 L 33,32 L 33,36 L 12,36 z ",
drawingParameters: DrawingParameters(
strokeLineCap: StrokeCap.butt,
),
),
VectorImagePathDefinition(
path:
"M 11,14 L 11,9 L 15,9 L 15,11 L 20,11 L 20,9 L 25,9 L 25,11 L"
" 30,11 L 30,9 L 34,9 L 34,14",
drawingParameters: DrawingParameters(
strokeLineCap: StrokeCap.butt,
),
),
VectorImagePathDefinition(
path: "M 34,14 L 31,17 L 14,17 L 11,14",
drawingParameters: DrawingParameters(),
),
VectorImagePathDefinition(
path: "M 31,17 L 31,29.5 L 14,29.5 L 14,17",
drawingParameters: DrawingParameters(
strokeLineCap: StrokeCap.butt,
strokeLineJoin: StrokeJoin.miter,
),
),
VectorImagePathDefinition(
path: "M 31,29.5 L 32.5,32 L 12.5,32 L 14,29.5",
drawingParameters: DrawingParameters(),
),
VectorImagePathDefinition(
path: "M 11,14 L 34,14",
drawingParameters: DrawingParameters(
fillColor: null,
strokeColor: strokeColor,
strokeLineJoin: StrokeJoin.miter,
),
)
],
drawingParameters: DrawingParameters(
fillColor: fillColor,
strokeColor: strokeColor,
strokeWidth: 1.5,
strokeLineCap: StrokeCap.round,
strokeLineJoin: StrokeJoin.round,
strokeLineMiterLimit: 4.0,
),
),
],
),
);