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({
  super.pageTheme,
  super.pageFormat,
  required BuildListCallback build,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.crossAxisAlignment = CrossAxisAlignment.start,
  this.header,
  this.footer,
  super.theme,
  this.maxPages = 20,
  super.orientation,
  super.margin,
  super.textDirection,
})  : _buildList = build,
      assert(maxPages > 0),
      super(
        build: (_) => SizedBox(),
      );