SizedBox.fromSize constructor

SizedBox.fromSize({
  1. Widget? child,
  2. PdfPoint? size,
})

Creates a box with the specified size.

Implementation

SizedBox.fromSize({this.child, PdfPoint? size})
    : width = size?.x,
      height = size?.y;