phase3: precise nullable-condition fixes (if(x)->if(x==true), analyzer-driven). 399->379

This commit is contained in:
2026-07-26 10:46:26 +08:00
parent 97e4908126
commit 3ed58e1596
6 changed files with 20 additions and 20 deletions

View File

@@ -85,7 +85,7 @@ class RadioOptionsState extends OptionsBaseState<RadioOptions> {
'adjust_amount': adjustAmount
};
var cloneSelections = json.decode(json.encode(selections));
if (product.productAttributes![index].required) {
if (product.productAttributes![index].required == true) {
cloneSelections[product.productAttributes![index].name!.toUpperCase()] = [opt];
} else {
if (cloneSelections.containsKey(product.productAttributes![index].name!.toUpperCase())