エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ここにツイート内容が記載されます https://b.hatena.ne.jp/URLはspanで囲んでください
Twitterで共有ONにすると、次回以降このダイアログを飛ばしてTwitterに遷移します
Photo by Ross Findon on UnsplashA native Dart list is mutable, meaning you can change its it ems: ... Photo by Ross Findon on UnsplashA native Dart list is mutable, meaning you can change its it ems: var list = [1, 2]; list.add(3);As you probably know, you can prevent mutability by using the List.unmodifiable constructor, but this will not remove the add method. It just fails at runtime: var list = List.unmodifiable([1, 2]); var list.add(3); // Throws an exceptionOnce you have a list you can’t chan