showTSnackBar function
void
showTSnackBar(
- BuildContext context,
- String message, {
- Color? color,
- bool? showCloseIcon,
- SnackBarAction? action,
- DismissDirection? dismissDirection,
- Color? closeIconColor,
- Color? backgroundColor,
Implementation
void showTSnackBar(
BuildContext context,
String message, {
Color? color,
bool? showCloseIcon,
SnackBarAction? action,
DismissDirection? dismissDirection,
Color? closeIconColor,
Color? backgroundColor,
}) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(message, style: TextStyle(color: color)),
showCloseIcon: showCloseIcon,
action: action,
dismissDirection: dismissDirection,
closeIconColor: closeIconColor,
backgroundColor: backgroundColor,
),
);
}