phase3: precise nullable-condition fixes (if(x)->if(x==true), analyzer-driven). 399->379
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user