VectorBase constructor

VectorBase({
  1. required VectorImagePainter painter,
  2. required double baseImageSize,
  3. required double requestSize,
})

Both painter and baseImagesSize are required painter (VectorImagePainter) : the Painter that helps use draw the Vector baseImageSize (double) : the size of the original image requestSize (double) : the wanted size

Implementation

VectorBase({
  required VectorImagePainter painter,
  required double baseImageSize,
  required double requestSize,
}) : super(
          painter: painterWithDrawingZoneAndBaseImageSizeSet(
              painter, baseImageSize),
          size: Size.square(requestSize));