loading static method

Loading loading(
  1. BuildContext context
)

Implementation

static Loading loading(BuildContext context) {
  Close show({message, duration, mask = true, icon}) {
    final int toastLoadingDuration =
        WeUi.getConfig(context).toastLoadingDuration;

    return WeToast.toast(context)(
        icon: Rotating(icon == null ? _loadingIcon : icon, duration: 800),
        mask: mask,
        message: message,
        duration: duration == null ? toastLoadingDuration : duration);
  }

  return show;
}