PrinterRect.fromLTWH constructor

const PrinterRect.fromLTWH(
  1. double left,
  2. double top,
  3. double width,
  4. double height,
)

Construct a rectangle from its left and top edges, its width, and its height.

To construct a PrinterRect from an Offset and a Size, you can use the rectangle constructor operator &. See Offset.&.

Implementation

const PrinterRect.fromLTWH(double left, double top, double width, double height) : this.fromLTRB(left, top, left + width, top + height);