phase3: targeted local-var nullable (strict type) + nullfix cascade. 379->309

This commit is contained in:
2026-07-26 10:47:55 +08:00
parent 3ed58e1596
commit 1aa7cf3477
6 changed files with 39 additions and 39 deletions

View File

@@ -136,7 +136,7 @@ class CreateOnlineStore1State extends State<CreateOnlineStore1> {
),
),
);
Map<String, dynamic> existing_web_svc;
Map<String, dynamic>? existing_web_svc;
if (selectedStore != null && (selectedStore['services'] as List).length > 0) {
for (Map<String, dynamic>svc in (selectedStore['services'] as List)) {
if (svc['code'] == Constants.WEB_MINISTORE_SERVICE) {
@@ -188,8 +188,8 @@ class CreateOnlineStore1State extends State<CreateOnlineStore1> {
Navigator.pushReplacement(context, MaterialPageRoute(
builder: (BuildContext context) =>
BuyService(group.id!, Constants.WEB_MINISTORE_SERVICE,
domain: existing_web_svc['domain'],
sid: existing_web_svc['store']['id'],
domain: existing_web_svc!['domain'],
sid: existing_web_svc!['store']['id'],
),
));
},