Shape constructor

Shape(
  1. String shape,
  2. {PdfColor? strokeColor,
  3. PdfColor? fillColor,
  4. double? width,
  5. double? height,
  6. BoxFit fit = BoxFit.contain}
)

Implementation

Shape(
  this.shape, {
  this.strokeColor,
  this.fillColor,
  this.width,
  this.height,
  this.fit = BoxFit.contain,
})  : assert(width == null || width > 0.0),
      assert(height == null || height > 0.0);