BlackKnight constructor

BlackKnight({
  1. double size = 45.0,
  2. dynamic fillColor = Colors.black,
  3. dynamic strokeColor = Colors.black,
  4. dynamic decorationColor = Colors.white,
})

size (double) : default to 45.0

Implementation

BlackKnight({
  double size = 45.0,
  this.fillColor = Colors.black,
  this.strokeColor = Colors.black,
  this.decorationColor = Colors.white,
}) : super(
        baseImageSize: 45.0,
        requestSize: size,
        painter: VectorImagePainter(
          vectorDefinition: <VectorDrawableElement>[
            VectorImageGroup(
              children: <VectorDrawableElement>[
                VectorImagePathDefinition(
                  path: "M 22,10 C 32.5,11 38.5,18 38,39 L 15,39"
                      " C 15,30 25,32.5 23,18",
                  drawingParameters: DrawingParameters(
                    fillColor: fillColor,
                  ),
                ),
                VectorImagePathDefinition(
                  path:
                      "M 24,18 C 24.38,20.91 18.45,25.37 16,27 C 13,29 13.18,"
                      "31.34 11,31 C 9.958,30.06 12.41,27.96 11,28 C 10,28 11.19,"
                      "29.23 10,30 C 9,30 5.997,31 6,26 C 6,24 12,14 12,14 C 12,14"
                      " 13.89,12.1 14,10.5 C 13.27,9.506 13.5,8.5 13.5,7.5 C 14.5,"
                      "6.5 16.5,10 16.5,10 L 18.5,10 C 18.5,10 19.28,8.008 21,7 C "
                      "22,7 22,10 22,10",
                  drawingParameters: DrawingParameters(
                    fillColor: fillColor,
                  ),
                ),
                VectorImagePathDefinition(
                  path:
                      "M 9.5 25.5 A 0.5 0.5 0 1 1 8.5,25.5 A 0.5 0.5 0 1 1 9.5 25.5 z",
                  drawingParameters: DrawingParameters(
                    fillColor: decorationColor,
                    strokeColor: decorationColor,
                  ),
                ),
                VectorImagePathDefinition(
                  path:
                      "M 15 15.5 A 0.5 1.5 0 1 1  14,15.5 A 0.5 1.5 0 1 1  15 15.5 z",
                  drawingParameters: DrawingParameters(
                    fillColor: decorationColor,
                    strokeColor: decorationColor,
                    transformMatrixValues: <double>[
                      0.866,
                      0.5,
                      -0.5,
                      0.866,
                      9.693,
                      -5.173
                    ],
                  ),
                ),
                VectorImagePathDefinition(
                  path:
                      "M 24.55,10.4 L 24.1,11.85 L 24.6,12 C 27.75,13 30.25,14.49 "
                      "32.5,18.75 C 34.75,23.01 35.75,29.06 35.25,39 L 35.2,39.5 L "
                      "37.45,39.5 L 37.5,39 C 38,28.94 36.62,22.15 34.25,17.66 C "
                      "31.88,13.17 28.46,11.02 25.06,10.5 L 24.55,10.4 z ",
                  drawingParameters: DrawingParameters(
                    fillColor: decorationColor,
                    strokeColor: strokeColor,
                    strokeWidth: 0.5,
                  ),
                )
              ],
              drawingParameters: DrawingParameters(
                fillColor: null,
                strokeColor: strokeColor,
                strokeWidth: 1.5,
                strokeLineCap: StrokeCap.round,
                strokeLineJoin: StrokeJoin.round,
                strokeLineMiterLimit: 4.0,
              ),
            )
          ],
        ),
      );