Dart syntax - if else for, forEach,throw, try catch,try on

   ☝if  else 可多條件

☝for 單條件

☝for
☝forEach
☝forEach = for-in 一一叫出來

👉自訂例外(exception / error)處理 throw & try catch & try on

☝try catch  無指定型別

☝try on type 指定型別

☝try catch final final是用於確認某特定的code是否有例外丟出。

☝try{...}catch(e){... rethrow};  可看到系統定義的例外訊息。






Comments

Popular posts from this blog

Go-VSCode -Autocomplete and Auto-import

Go - mail