showToast static method

dynamic showToast(
  1. dynamic text
)

Implementation

static showToast(text) {
  if (text == null || text.toString().isEmpty) return;
  BotToast.showText(
    text: text.toString(),
    align: Alignment.center,
    contentColor: Get.isDarkMode ? Colors.white : Colors.black54,
    textStyle:
        TextStyle(color: !Get.isDarkMode ? Colors.white : Colors.black54),
  );
}