Page constructor
Page({
- PageTheme? pageTheme,
- PdfPageFormat? pageFormat,
- required BuildCallback build,
- ThemeData? theme,
- PageOrientation? orientation,
- EdgeInsetsGeometry? margin,
- bool clip = false,
- TextDirection? textDirection,
Implementation
Page({
PageTheme? pageTheme,
PdfPageFormat? pageFormat,
required BuildCallback build,
ThemeData? theme,
PageOrientation? orientation,
EdgeInsetsGeometry? margin,
bool clip = false,
TextDirection? textDirection,
}) : assert(
pageTheme == null ||
(pageFormat == null &&
theme == null &&
orientation == null &&
margin == null &&
clip == false &&
textDirection == null),
'Don\'t set both pageTheme and other settings'),
pageTheme = pageTheme ??
PageTheme(
pageFormat: pageFormat,
orientation: orientation,
margin: margin,
theme: theme,
clip: clip,
textDirection: textDirection,
),
_build = build;