show static method
Implementation
static void show(
BuildContext context,
String title,
String message,
MessageConfig config,
) {
toastification.show(
context: context,
title: Text(title, style: TextStyle(color: config.textColor)),
description: Text(message, style: TextStyle(color: config.textColor)),
backgroundColor: config.backgroundColor ?? Colors.black,
icon: Icon(config.icon, color: config.textColor),
autoCloseDuration: config.duration ?? const Duration(seconds: 3),
alignment: Alignment.topRight,
);
}