failToast static method

void failToast(
  1. BuildContext context,
  2. String msg, {
  3. WiseToastLength toastLength = WiseToastLength.short,
})

失败Toast

Implementation

static void failToast(BuildContext context, String msg,
    {WiseToastLength toastLength = WiseToastLength.short}) {
  _toast(
    context,
    msg,
    prefix: Icon(
      Icons.error_outline,
      color: Colors.red,
      size: 24.w,
    ),
    toastLength: toastLength,
  );
}