PdfMargins.mm constructor

PdfMargins.mm({
  1. num? top,
  2. num? bottom,
  3. num? left,
  4. num? right,
})

Implementation

factory PdfMargins.mm({num? top, num? bottom, num? left, num? right}) {
  return PdfMargins.inches(
    top: top != null ? _mmToInches(top) : null,
    bottom: bottom != null ? _mmToInches(bottom) : null,
    left: left != null ? _mmToInches(left) : null,
    right: right != null ? _mmToInches(right) : null,
  );
}