errorSnackBar static method
dynamic
errorSnackBar({
- required dynamic title,
- dynamic message = '',
Implementation
static errorSnackBar({required title, message = ''}) {
Get.snackbar(
title,
message,
maxWidth: 600,
isDismissible: true,
shouldIconPulse: true,
colorText: TColors().white,
backgroundColor: Colors.red.shade600,
snackPosition: SnackPosition.BOTTOM,
duration: const Duration(seconds: 3),
margin: const EdgeInsets.all(20),
icon: Icon(Iconsax.warning_2, color: TColors().white),
);
}