applyMargin method

PdfPageFormat applyMargin({
  1. required double left,
  2. required double top,
  3. required double right,
  4. required double bottom,
})

Implementation

PdfPageFormat applyMargin(
        {required double left,
        required double top,
        required double right,
        required double bottom}) =>
    copyWith(
      marginLeft: math.max(marginLeft, left),
      marginTop: math.max(marginTop, top),
      marginRight: math.max(marginRight, right),
      marginBottom: math.max(marginBottom, bottom),
    );