showSnackbar static method

void showSnackbar(
  1. BuildContext context,
  2. String title,
  3. String message,
  4. Color backgroundColor,
)

Implementation

static void showSnackbar(BuildContext context, String title, String message,
    Color backgroundColor) {
  Flushbar(
          margin: const EdgeInsets.all(8),
          borderRadius: BorderRadius.circular(15),
          routeBlur: 20,
          flushbarPosition: FlushbarPosition.TOP,
          duration: const Duration(seconds: 5),
          title: title,
          message: message,
          backgroundColor: backgroundColor)
      .show(context);
}