withOrientation method

CPDFPageSize withOrientation(
  1. Orientation orientation
)

Implementation

CPDFPageSize withOrientation(Orientation orientation) {
  if (orientation == Orientation.landscape) {
    return CPDFPageSize._(name, height, width, isCustom: isCustom);
  }
  return this;
}