BlackKnight constructor

BlackKnight({
  1. double size = 45.0,
})

size (double) : default to 45.0

Implementation

BlackKnight({double size = 45.0})
    : 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: Colors.black)),
                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: Colors.black)),
                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: Colors.white, strokeColor: Colors.white)),
                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: Colors.white,
                        strokeColor: Colors.white,
                        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: Colors.white,
                        strokeColor: Colors.black,
                        strokeWidth: 0.5))
              ],
              drawingParameters: DrawingParameters(
                  fillColor: null,
                  strokeColor: Colors.black,
                  strokeWidth: 1.5,
                  strokeLineCap: StrokeCap.round,
                  strokeLineJoin: StrokeJoin.round,
                  strokeLineMiterLimit: 4.0))
        ]),
      );