FCCErrorState constructor

const FCCErrorState({
  1. Key? key,
  2. required String message,
  3. String title = 'Error',
  4. IconData icon = Icons.error_outline,
  5. Future<void> onRetry()?,
  6. String retryText = 'Retry',
  7. bool isNeumorphic = false,
  8. bool enableAnimation = true,
  9. NeumorphicStyle neumorphicStyle = NeumorphicStyle.lowered,
  10. EdgeInsets cardPadding = const EdgeInsets.all(24),
  11. double borderRadiusValue = 24,
  12. int animationIndex = 0,
  13. Duration animationBaseDuration = const Duration(milliseconds: 500),
  14. String? lottieAsset,
  15. String? lottieNetwork,
  16. double lottieSize = 80,
})

Implementation

const FCCErrorState({
  super.key,
  required this.message,
  this.title = 'Error',
  this.icon = Icons.error_outline,
  this.onRetry,
  this.retryText = 'Retry',
  this.isNeumorphic = false,
  this.enableAnimation = true,
  this.neumorphicStyle = NeumorphicStyle.lowered,
  this.cardPadding = const EdgeInsets.all(24),
  this.borderRadiusValue = 24,
  this.animationIndex = 0,
  this.animationBaseDuration = const Duration(milliseconds: 500),
  this.lottieAsset,
  this.lottieNetwork,
  this.lottieSize = 80,
});