successSnackBar static method
- required String title,
- dynamic message,
Displays a success 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 successSnackBar({required String title, message}) {
Get.snackbar(
title,
message,
isDismissible: true,
shouldIconPulse: true,
colorText: tWhiteColor,
backgroundColor: Colors.green,
snackPosition: SnackPosition.BOTTOM,
duration: const Duration(seconds: 6),
margin: const EdgeInsets.all(tDefaultSpace - 10),
icon: const Icon(LineAwesomeIcons.check_circle, color: tWhiteColor),
);
}