TResult.error constructor
const
TResult.error({
- Key? key,
- String? title = 'Operation Failed',
- Widget? titleWidget,
- String? subtitle = 'Please check your input parameters and try again.',
- Widget? subtitleWidget,
- dynamic icon,
- Color? iconColor,
- double iconSize = 64.0,
- Widget? primaryAction,
- Widget? secondaryAction,
- Widget? extra,
- bool fullPage = false,
- EdgeInsetsGeometry padding = const EdgeInsets.all(32.0),
Generic error outcome preset (red alert icon).
Implementation
const TResult.error({
super.key,
this.title = 'Operation Failed',
this.titleWidget,
this.subtitle = 'Please check your input parameters and try again.',
this.subtitleWidget,
this.icon,
this.iconColor,
this.iconSize = 64.0,
this.primaryAction,
this.secondaryAction,
this.extra,
this.fullPage = false,
this.padding = const EdgeInsets.all(32.0),
}) : status = TResultStatus.error;