Dart …
1 min readSep 10, 2019
看 Dart Programming Language,一堆語法說明。比較有趣/奇怪/特殊的
=> expression 就是 { return expression; }
cascade (..) 省掉為短暫使用的物件取名子的麻煩
Get kolococo’s stories in your inbox
Join Medium for free to get updates from this writer.
?. null aware operator - 省掉object 是不是 null 的檢查
class 的 constructor 中參數設定有一堆寫法 .. this, : ..
class constructor keyword : factory 有點看不懂,是實做出來的還是語言特性/功能 ?
class 的 get, set 方法,get XX. set XX 都寫的話,等於是宣告了一個新變數 XX.




