show static method
toast 一条消息-顶部主题色背景
Implementation
static show(String msg) {
BotToast.showCustomNotification(
duration: Duration(seconds: 2),
toastBuilder: (cancel) {
return _CustomWidget(
cancelFunc: cancel,
msg: msg,
color: _color,
isDark: _isDark,
);
},
);
}