showErrorToast function
Implementation
void showErrorToast({required BuildContext context,required String msg,int showTime = 2000}) {
if (StrUtils.isEmpty(msg)) {
return;
}
Toast.showStatus(msg,status: false,context: context,showTime: showTime);
}