showLoading static method
显示 Loading
Implementation
static void showLoading({bool showBgColor = true, String? description, int? duration}) {
toastification.showCustom(
autoCloseDuration: Duration(seconds: duration ?? ConfigStore.to.config.http.requestTimeOut),
alignment: Alignment.center,
builder: (BuildContext context, ToastificationItem holder) {
return CustomLoadings(description: description, showBgColor: showBgColor);
},
);
}