ModernSnackbarContent constructor

const ModernSnackbarContent({
  1. Key? key,
  2. required String title,
  3. String? subtitle,
  4. required IconData icon,
  5. required Color iconColor,
  6. required Color backgroundColor,
  7. Gradient? gradient,
  8. required bool showProgressIndicator,
  9. required Duration duration,
  10. required SnackbarType type,
  11. required SnackbarPosition position,
  12. required SnackbarAnimation animation,
  13. required BorderRadius borderRadius,
  14. required double maxWidth,
  15. bool dismissOnTap = false,
  16. VoidCallback? onTap,
  17. double? blur,
  18. ImageFilter? backdropFilter,
  19. ContentDesignStyle designStyle = ContentDesignStyle.solid,
  20. Color? titleColor,
  21. Color? subtitleColor,
  22. Color? borderColor,
  23. bool showCloseButton = false,
  24. VoidCallback? onCloseButtonPressed,
})

Implementation

const ModernSnackbarContent({
  super.key,
  required this.title,
  this.subtitle,
  required this.icon,
  required this.iconColor,
  required this.backgroundColor,
  this.gradient,
  required this.showProgressIndicator,
  required this.duration,
  required this.type,
  required this.position,
  required this.animation,
  required this.borderRadius,
  required this.maxWidth,
  this.dismissOnTap = false,
  this.onTap,
  this.blur,
  this.backdropFilter,
  this.designStyle = ContentDesignStyle.solid,
  this.titleColor,
  this.subtitleColor,
  this.borderColor,
  this.showCloseButton = false,
  this.onCloseButtonPressed,
});