ErrorState constructor

const ErrorState({
  1. Key? key,
  2. String title = 'Something went wrong',
  3. String? message,
  4. String retryLabel = 'Try again',
  5. VoidCallback? onRetry,
  6. IconData icon = Icons.error_outline,
})

Implementation

const ErrorState({
  super.key,
  this.title = 'Something went wrong',
  this.message,
  this.retryLabel = 'Try again',
  this.onRetry,
  this.icon = Icons.error_outline,
});