errorSnackBar static method

dynamic errorSnackBar({
  1. required dynamic title,
  2. 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),
  );
}