closeAllLoading static method

void closeAllLoading()

This method is generally used in dispose to ensure that the Toast is closed properly. It prevents scenarios where the developer forgets to close it manually or if there's an API request error that prevents the CancelFunc from executing. This ensures that the user can interact with the app normally. 此方法一般使用在dispose里面,防止因为开发人员没有主动去关闭,或者是请求api时的出现异常导致CancelFunc方法没有执行到等等,导致用户点击不了app

Implementation

static void closeAllLoading() {
  //以此方式移除将不会触发关闭动画
  removeAll(loadKey);
}