📕

[Flutter] 演算子集

2022/05/08に公開

!=

意味:ノットイコール

if (help.attributes.children != null)

もしhelp.attributes.childrenが nullではなかったら、、、

??

意味:値がNullのとき

item.attributes.desc ?? '',

item.attributes.descがNullのときに空文字を表示する

参考リンク
https://dev-yakuza.posstree.com/flutter/dart/operator/

https://twitter.com/tanigucci0128

GitHubで編集を提案

Discussion