不可变的 class 在 flutter 中?
Immutable class in flutter?
我收到这个->
Here is the screenshot
这个不可变的 class 是什么?以及我需要如何纠正这个问题。
无状态小部件中的字段应标记为最终字段,因此将字段更改为
final pinPillPosition
final currentlySelectedPin
在您的无状态小部件中执行此操作,或者您可以通过
忽略警告
//ignore: must_be_immutable
我收到这个-> Here is the screenshot
这个不可变的 class 是什么?以及我需要如何纠正这个问题。
无状态小部件中的字段应标记为最终字段,因此将字段更改为
final pinPillPosition
final currentlySelectedPin
在您的无状态小部件中执行此操作,或者您可以通过
忽略警告//ignore: must_be_immutable