这个问题在这里已经有了答案:SwitchingonclasstypeinDart(1个回答)关闭3年前。我是dart编程的新手,所以我尝试检查嵌套在FutureBuilder中的switchcase中的异常子类型,但我没有满意的解决方案...我尝试检查switch-case,但它不工作,但是当我尝试使用isif-else时,它正在工作...我的自定义异常子类型:classHttpExceptionimplementsException{HttpStatusErrorstatus;Stringmessage;HttpException(intstatusCode){switch(st
这个问题在这里已经有了答案:SwitchingonclasstypeinDart(1个回答)关闭3年前。我是dart编程的新手,所以我尝试检查嵌套在FutureBuilder中的switchcase中的异常子类型,但我没有满意的解决方案...我尝试检查switch-case,但它不工作,但是当我尝试使用isif-else时,它正在工作...我的自定义异常子类型:classHttpExceptionimplementsException{HttpStatusErrorstatus;Stringmessage;HttpException(intstatusCode){switch(st