Alert constructor

const Alert({
  1. AlertVariant variant = AlertVariant.standard,
  2. required AlertColor color,
  3. required SvgPicture icon,
  4. required String title,
  5. String? subtitle,
  6. VoidCallback? onTap,
  7. Key? key,
  8. Key? titleKey,
  9. Key? buttonKey,
  10. 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;