Alert constructor
const
Alert({
- AlertVariant variant = AlertVariant.standard,
- required AlertColor color,
- required SvgPicture icon,
- required String title,
- String? subtitle,
- VoidCallback? onTap,
- Key? key,
- Key? titleKey,
- Key? buttonKey,
- String? buttonTitle,
Implementation
const Alert({
final AlertVariant variant = AlertVariant.standard,
required final AlertColor color,
required SvgPicture icon,
required String title,
String? subtitle,
VoidCallback? onTap,
Key? key,
Key? titleKey,
Key? buttonKey,
String? buttonTitle,
}) : _key = key,
_icon = icon,
_titleKey = titleKey,
_title = title,
_subtitle = subtitle,
_onTap = onTap,
_variant = variant,
_color = color,
_buttonKey = buttonKey,
_buttonTitle = buttonTitle;