MultiPage constructor

MultiPage({
  1. PageTheme? pageTheme,
  2. PdfPageFormat? pageFormat,
  3. required BuildListCallback build,
  4. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  5. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  6. BuildCallback? header,
  7. BuildCallback? footer,
  8. ThemeData? theme,
  9. int maxPages = 20,
  10. PageOrientation? orientation,
  11. EdgeInsetsGeometry? margin,
  12. 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,
      );