我的应用程序主页中有一个 PageView,我想要:
我想象的2个解决方案是:
所以,我想知道,它是有效的,但是嵌套支架在语法上是否“正确”?
How do you deal with "accepted null values" when you update a state in BLoC ? I use the flutter_bloc package.
I have a form in which numeric variables are nullable so that I can check their validity before the form is submitted. But when I emit a new state, I use state.copyWith(var1?, var2?)... so when a null value is used to update a parameter, the value is not updated.
To face that I use a custom FieldStatus enum for …