2022-03-22から1日間の記事一覧

【Flutter】エラーコード:The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null'.の解決方法

Flutterで以下のようなKeyを使ったコードを書いていた時、 const _Post({ Key key, @required this.name,}) : super(key: key); keyの部分で以下のエラーコードが出てきた。 「The parameter 'key' can't have a value of 'null' because of its type, but t…