landscape property

PdfPageFormat get landscape

landscape API.

Implementation

PdfPageFormat get landscape => width >= height
    ? this
    : PdfPageFormat(
        height,
        width,
        marginTop: marginLeft,
        marginBottom: marginRight,
        marginLeft: marginBottom,
        marginRight: marginTop,
      );