RSnackbarIconConfig constructor
RSnackbarIconConfig(
- String msg,
- IconData icon, {
- VoidCallback? onCancel,
- TextStyle? textStyle,
- BorderRadius? borderRadius,
- Color backgroundColor = Colors.black,
- Color forgroundColor = Colors.white,
- bool durationVisibility = true,
Implementation
RSnackbarIconConfig(String msg, IconData icon,
{VoidCallback? onCancel,
TextStyle? textStyle,
BorderRadius? borderRadius,
Color backgroundColor = Colors.black,
Color forgroundColor = Colors.white,
bool durationVisibility = true})
: super(Text(msg, maxLines: 2, overflow: TextOverflow.ellipsis),
leading: Icon(icon, color: forgroundColor),
onDismissed: onCancel,
textStyle: textStyle,
borderRadius: borderRadius,
backgroundColor: backgroundColor,
forgroundColor: forgroundColor,
durationVisibility: durationVisibility);