FCCErrorState constructor
const
FCCErrorState({
- Key? key,
- required String message,
- String title = 'Error',
- IconData icon = Icons.error_outline,
- Future<
void> onRetry()?, - String retryText = 'Retry',
- bool isNeumorphic = false,
- bool enableAnimation = true,
- NeumorphicStyle neumorphicStyle = NeumorphicStyle.lowered,
- EdgeInsets cardPadding = const EdgeInsets.all(24),
- double borderRadiusValue = 24,
- int animationIndex = 0,
- Duration animationBaseDuration = const Duration(milliseconds: 500),
- String? lottieAsset,
- String? lottieNetwork,
- 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,
});