ModernSnackbarContent constructor
const
ModernSnackbarContent({
- Key? key,
- required String title,
- String? subtitle,
- required IconData icon,
- required Color iconColor,
- required Color backgroundColor,
- Gradient? gradient,
- required bool showProgressIndicator,
- required Duration duration,
- required SnackbarType type,
- required SnackbarPosition position,
- required SnackbarAnimation animation,
- required BorderRadius borderRadius,
- required double maxWidth,
- bool dismissOnTap = false,
- VoidCallback? onTap,
- double? blur,
- ImageFilter? backdropFilter,
- ContentDesignStyle designStyle = ContentDesignStyle.solid,
- Color? titleColor,
- Color? subtitleColor,
- Color? borderColor,
- bool showCloseButton = false,
- 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,
});