WhiteKing constructor
WhiteKing({
- double size = 45.0,
size (double) : default to 45.0
Implementation
WhiteKing({double size = 45.0})
: super(
baseImageSize: 45.0,
requestSize: size,
painter:
VectorImagePainter(vectorDefinition: <VectorDrawableElement>[
VectorImageGroup(
children: <VectorDrawableElement>[
VectorImagePathDefinition(
path: "M 22.5,11.63 L 22.5,6",
drawingParameters: DrawingParameters(
fillColor: null,
strokeColor: Colors.black,
strokeLineJoin: StrokeJoin.miter)),
VectorImagePathDefinition(
path: "M 20,8 L 25,8",
drawingParameters: DrawingParameters(
fillColor: null,
strokeColor: Colors.black,
strokeLineJoin: StrokeJoin.miter)),
VectorImagePathDefinition(
path:
"M 22.5,25 C 22.5,25 27,17.5 25.5,14.5 C 25.5,14.5 "
"24.5,12 22.5,12 C 20.5,12 19.5,14.5 19.5,14.5 C"
" 18,17.5 22.5,25 22.5,25",
drawingParameters: DrawingParameters(
fillColor: Colors.white,
strokeColor: Colors.black,
strokeLineCap: StrokeCap.butt,
strokeLineJoin: StrokeJoin.miter)),
VectorImagePathDefinition(
path: "M 11.5,37 C 17,40.5 27,40.5 32.5,37 L 32.5,30 C"
" 32.5,30 41.5,25.5 38.5,19.5 C 34.5,13 25,16"
" 22.5,23.5 L 22.5,27",
drawingParameters: DrawingParameters(
fillColor: Colors.white,
strokeColor: Colors.black)),
VectorImagePathDefinition(
path: "M 22.5,27 L 22.5,23.5 C 19,16 9.5,13"
" 6.5,19.5 C 3.5,25.5 11.5,29.5 11.5,29.5 L"
" 11.5,37",
drawingParameters: DrawingParameters(
fillColor: Colors.white, strokeColor: Colors.black),
),
VectorImagePathDefinition(
path: "M 11.5,30 C 17,27 27,27 32.5,30",
drawingParameters: DrawingParameters(
fillColor: null, strokeColor: Colors.black)),
VectorImagePathDefinition(
path: "M 11.5,33.5 C 17,30.5 27,30.5 32.5,33.5",
drawingParameters: DrawingParameters(
fillColor: null, strokeColor: Colors.black)),
VectorImagePathDefinition(
path: "M 11.5,37 C 17,34 27,34 32.5,37",
drawingParameters: DrawingParameters(
fillColor: null, strokeColor: Colors.black)),
],
drawingParameters: DrawingParameters(
fillColor: null,
strokeColor: Colors.black,
strokeWidth: 1.5,
strokeLineCap: StrokeCap.round,
strokeLineJoin: StrokeJoin.round,
strokeLineMiterLimit: 4.0))
]));