errorBuilder property

ErrorBuilder errorBuilder
final

Called with an error object if an error occurs when loading the page

It is expected to return a widget to display in place of the page that failed to load. For example:

(BuildContext context, Object error) {
  return Text('Failed to load page: $error');
}

If not specified, a Text containing the error will be displayed

Implementation

final ErrorBuilder errorBuilder