RSnackbarIconConfig constructor

RSnackbarIconConfig(
  1. String msg,
  2. IconData icon, {
  3. VoidCallback? onCancel,
  4. TextStyle? textStyle,
  5. BorderRadius? borderRadius,
  6. Color backgroundColor = Colors.black,
  7. Color forgroundColor = Colors.white,
  8. 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);