errorSnack method

dynamic errorSnack(
  1. dynamic msg, {
  2. dynamic title = "Error",
})

Implementation

errorSnack(msg, {title = "Error"}) {
  return Get.snackbar(
    title,
    msg,
    backgroundColor: Colors.redAccent.withOpacity(0.4),
  );
}