showErrorState method

void showErrorState({
  1. String? errorTxt,
  2. String? retryTxt,
})

展示错误状态的UI

Implementation

void showErrorState({String? errorTxt, String? retryTxt}) {
  stateController.refreshState(ViewState.error,
      hintTxt: errorTxt, retryTxt: retryTxt);
}