DefaultErrorPlaceholder constructor

const DefaultErrorPlaceholder({
  1. Key? key,
  2. VoidCallback? onRetry,
  3. String message = 'Something went wrong',
})

Creates a DefaultErrorPlaceholder.

onRetry is called when the user taps the retry button. If null, the button is not shown.

Implementation

const DefaultErrorPlaceholder({
  super.key,
  this.onRetry,
  this.message = 'Something went wrong',
});