show static method

dynamic show(
  1. BuildContext context, {
  2. String text = "titulo!",
  3. Color? textColor,
  4. Color? backgroundColor,
  5. IconData? icon,
  6. bool? action = false,
  7. String labelBtnAction = 'Ok',
  8. Function? onPressedAction,
})

Implementation

static show(BuildContext context,
    {String text = "titulo!",
    Color? textColor,
    Color? backgroundColor,
    IconData? icon,
    bool? action = false,
    String labelBtnAction = 'Ok',
    Function? onPressedAction}) {
  ScaffoldMessenger.of(context).hideCurrentSnackBar();
  ScaffoldMessenger.of(context).showSnackBar(_buildSnackbar(
      context: context,
      text: text,
      textColor: textColor,
      backgroundColor: backgroundColor,
      labelBtnAction: labelBtnAction,
      isAction: action,
      icon: icon,
      onPressedAction: onPressedAction));
}