painterWithDrawingZoneAndBaseImageSizeSet function

VectorImagePainter painterWithDrawingZoneAndBaseImageSizeSet (VectorImagePainter originPainter, double baseImageSize)

Returns an equivalent VectorImagePainter but also setting size of its image.

Implementation

VectorImagePainter painterWithDrawingZoneAndBaseImageSizeSet(
    VectorImagePainter originPainter, double baseImageSize) {
  return VectorImagePainter(
    vectorDefinition: originPainter.vectorDefinition,
    baseImageSize: baseImageSize,
  );
}