defaultPage function
PageComponent
defaultPage({
- DecimalSeparator decimalSeparator = DecimalSeparator.point,
The page a new document gets (spec 12a D4, S-3, T-11): A4 landscape at 1:50 in metres, every field at its default, with a fixed origin. The sheet is 297 × 210 paper mm, 14,850 × 10,500 world mm at 1:50, so this origin centres it on the world origin. Not centred on the extents, as the sample's page is: an empty document's extents have a NaN centre, which the page refuses.
Its decimalSeparator is the one the plan's text prints with (spec Q0
N1): a caller with a language passes that language's
(documentSeparatorFor); without one it is the engine's default,
DecimalSeparator.point.
A function, not a constant: PageComponent's constructor validates its
fields, so it is not const.
Implementation
PageComponent defaultPage(
{DecimalSeparator decimalSeparator = DecimalSeparator.point}) =>
PageComponent(
originX: -7425, originY: -5250, decimalSeparator: decimalSeparator);