retryBuilder property
Called when a page fails to load and showRetry is set to true.
It is expected to return a widget that gives the user the idea that retry is possible. The builder is provided with a RetryCallback that must be called for the retry to happen.
For example:
(context, retryCallback) {
return FloatingActionButton(
onPressed: retryCallback,
backgroundColor: Colors.red,
child: Icon(Icons.refresh),
);
}
In the code above, when the button is pressed, retryCallback is called, which will retry to fetch the page.
If not specified, a simple retry button will be shown
Implementation
final RetryBuilder? retryBuilder;