pdfDefaultPageUnit function

String pdfDefaultPageUnit([
  1. Locale? locale
])

The default on-page reference unit (the ratio's left-hand side) for locale: inches in the imperial-system regions, centimetres everywhere else. Like pdfDefaultMeasurementUnit, this follows the device region.

Implementation

String pdfDefaultPageUnit([Locale? locale]) =>
    _isImperialRegion(locale) ? 'in' : 'cm';