/// The maximum number of pages allowed before raising an error.
/// This is not checked with a Release build.
finalintmaxPages;
void_paintChild(
...
...
@@ -196,7 +238,7 @@ class MultiPage extends Page {
// Detect too big widgets
if(sameCount++>maxPages){
throwException(
'This widget created more than $maxPages pages. This may be an issue in the widget or the document.');
'This widget created more than $maxPages pages. This may be an issue in the widget or the document. See https://pub.dev/documentation/pdf/latest/widgets/MultiPage-class.html');