PdfMargins.mm constructor

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

PdfMargins.mm then return in Inches

Implementation

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