TResult.error constructor

const TResult.error({
  1. Key? key,
  2. String? title = 'Operation Failed',
  3. Widget? titleWidget,
  4. String? subtitle = 'Please check your input parameters and try again.',
  5. Widget? subtitleWidget,
  6. dynamic icon,
  7. Color? iconColor,
  8. double iconSize = 64.0,
  9. Widget? primaryAction,
  10. Widget? secondaryAction,
  11. Widget? extra,
  12. bool fullPage = false,
  13. 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;