warningSnackBar static method

void warningSnackBar({
  1. required String title,
  2. dynamic message,
})

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