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