modernSnackBar static method
- required String title,
- dynamic message,
Displays a modern snack bar with a title and message. @param title The title of the snack bar. @param message The message to display in the snack bar. @return void
Implementation
static void modernSnackBar({required String title, message}) {
Get.snackbar(title, message,
isDismissible: true,
colorText: tWhiteColor,
backgroundColor: tGreyColor,
snackPosition: SnackPosition.BOTTOM,
duration: const Duration(seconds: 5),
margin: const EdgeInsets.all(tDefaultSpace - 10),
);
}