phase3: improve arg-bang handler (allow ! in chains, ; terminator). 574->440

This commit is contained in:
2026-07-26 10:41:02 +08:00
parent 36f36b815f
commit 154d696e70
50 changed files with 138 additions and 138 deletions

View File

@@ -290,7 +290,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
onChanged: (newValue) {
if (mounted) {
setState(() {
_selectedProvince = newValue;
_selectedProvince = newValue!;
});
}
},
@@ -472,22 +472,22 @@ class MobileEditAddressState extends State<MobileEditAddress> {
super.initState();
setState(() {
showLoading = false;
_selectedProvince = widget.address.state;
cityController.text = widget.address.city;
postalCodeController.text = widget.address.zip;
streetLine1Controller.text = widget.address.addressLine1;
streetLine2Controller.text = widget.address.addressLine2;
_selectedProvince = widget.address.state!;
cityController.text = widget.address.city!;
postalCodeController.text = widget.address.zip!;
streetLine1Controller.text = widget.address.addressLine1!;
streetLine2Controller.text = widget.address.addressLine2!;
_selectedGender = widget.address.gender == 1 ? Gender.Male : Gender.Female;
country = widget.address.country;
contactNameController.text = widget.address.contactName;
phoneController.text = widget.address.phone;
emailController.text = widget.address.email;
faxController.text = widget.address.fax;
country = widget.address.country!;
contactNameController.text = widget.address.contactName!;
phoneController.text = widget.address.phone!;
emailController.text = widget.address.email!;
faxController.text = widget.address.fax!;
});
}
void _saveEditAddress() {
final FormState form = _formKey.currentState;
final FormState form = _formKey.currentState!;
if (form.validate()) {
if (mounted) {
setState(() {