RistoNoticeCard.error constructor
RistoNoticeCard.error({
- Key? key,
- String? title,
- String? subtitle,
- List<
InlineSpan> ? subtitleSpan, - bool compact = false,
- bool showClose = false,
- VoidCallback? onClose,
- bool invert = false,
- Widget? noticeIcon,
- EdgeInsetsGeometry? iconPadding,
- Color? backgroundColor,
- Gradient? backgroundGradient,
- Color? borderColor,
- double borderWidth = 1.0,
- double borderOpacity = 0.5,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- double? elevation,
- Color? shadowColor,
- double? width,
- double? minWidth,
- double? maxWidth,
- double? height,
- double? minHeight,
- double? maxHeight,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- double? runSpacing,
Implementation
factory RistoNoticeCard.error({
Key? key,
String? title,
String? subtitle,
List<InlineSpan>? subtitleSpan,
bool compact = false,
bool showClose = false,
VoidCallback? onClose,
bool invert = false,
RistoFooterBuilder? footerBuilder,
AlignmentGeometry? footerAlignment,
EdgeInsetsGeometry? footerPadding,
Widget? noticeIcon,
EdgeInsetsGeometry? iconPadding,
Color? backgroundColor,
Gradient? backgroundGradient,
Color? borderColor,
double borderWidth = 1.0,
double borderOpacity = 0.5,
BorderRadiusGeometry? borderRadius,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
double? elevation,
Color? shadowColor,
double? width,
double? minWidth,
double? maxWidth,
double? height,
double? minHeight,
double? maxHeight,
CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
TextStyle? titleStyle,
TextStyle? subtitleStyle,
double? runSpacing,
}) {
return RistoNoticeCard(
key: key,
kind: RistoNoticeKind.error,
title: title,
subtitle: subtitle,
subtitleSpan: subtitleSpan,
compact: compact,
showClose: showClose,
onClose: onClose,
invert: invert,
footerBuilder: footerBuilder,
footerAlignment: footerAlignment,
footerPadding: footerPadding,
noticeIcon: noticeIcon,
iconPadding: iconPadding,
backgroundColor: backgroundColor,
backgroundGradient: backgroundGradient,
borderColor: borderColor,
borderWidth: borderWidth,
borderOpacity: borderOpacity,
borderRadius: borderRadius,
padding: padding,
margin: margin,
elevation: elevation,
shadowColor: shadowColor,
width: width,
minWidth: minWidth,
maxWidth: maxWidth,
height: height,
minHeight: minHeight,
maxHeight: maxHeight,
crossAxisAlignment: crossAxisAlignment,
titleStyle: titleStyle,
subtitleStyle: subtitleStyle,
runSpacing: runSpacing,
);
}