ErrorDisplayWidget.compact constructor

const ErrorDisplayWidget.compact({
  1. Key? key,
  2. required String message,
  3. VoidCallback? onRetry,
})

Creates a compact version of the error widget for smaller spaces.

Implementation

const ErrorDisplayWidget.compact({
  super.key,
  required this.message,
  this.onRetry,
})  : iconSize = 32,
      textSize = 14,
      isCompact = true;