MultiPage constructor
MultiPage({
- PageTheme? pageTheme,
- PdfPageFormat? pageFormat,
- required BuildListCallback build,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
- BuildCallback? header,
- ThemeData? theme,
- int maxPages = 20,
- PageOrientation? orientation,
- EdgeInsetsGeometry? margin,
- TextDirection? textDirection,
Implementation
MultiPage({
PageTheme? pageTheme,
PdfPageFormat? pageFormat,
required BuildListCallback build,
this.mainAxisAlignment = MainAxisAlignment.start,
this.crossAxisAlignment = CrossAxisAlignment.start,
this.header,
this.footer,
ThemeData? theme,
this.maxPages = 20,
PageOrientation? orientation,
EdgeInsetsGeometry? margin,
TextDirection? textDirection,
}) : _buildList = build,
assert(maxPages > 0),
super(
pageTheme: pageTheme,
pageFormat: pageFormat,
build: (_) => SizedBox(),
margin: margin,
theme: theme,
orientation: orientation,
textDirection: textDirection,
);