showErrorToast function

void showErrorToast({
  1. required BuildContext context,
  2. required String msg,
  3. int showTime = 2000,
})

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);
}