toastInfo function

ToastificationItem toastInfo(
  1. BuildContext context,
  2. String msg
)

Implementation

ToastificationItem toastInfo(BuildContext context, String msg) {
  return toastification.show(
    context: context, // optional if you use ToastificationWrapper
    title: Text(msg),
    type: ToastificationType.info,
    style: ToastificationStyle.flat,
    alignment: Alignment.center,
    backgroundColor: Colors.black,
    foregroundColor: Colors.white,
    autoCloseDuration: const Duration(seconds: 1),
  );
}