modernSnackBar static method

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

Displays a modern 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 modernSnackBar({required String title, message}) {
  Get.snackbar(title, message,
      isDismissible: true,
      colorText: tWhiteColor,
      backgroundColor: tGreyColor,
      snackPosition: SnackPosition.BOTTOM,
      duration: const Duration(seconds: 5),
      margin: const EdgeInsets.all(tDefaultSpace - 10),
  );
}