phase3(foundation): http_util dio5 migration + null-safe models
- http_util.dart: dio4->5 (DioException, nullable params, drop unused statusCode, null-safe e.response!.data), countryCode ?? '' - models/* (39 files): make all instance fields nullable (fromJson initializer-list pattern forces nullable); fix internal method usages (cart_info/cart_line_item/ order/shipping_rate) with !/?? - models/ now passes dart analyze with 0 errors Widget-level null-safety + remaining utils/store continue in next batch.
This commit is contained in:
@@ -6,19 +6,19 @@ import 'package:flutter/cupertino.dart';
|
||||
import '../generated/l10n.dart';
|
||||
|
||||
class PaymentPlatform {
|
||||
int id;
|
||||
String name;
|
||||
String code;
|
||||
String method;
|
||||
String icon;
|
||||
String xLogin;
|
||||
String transactionKey;
|
||||
String responseKey;
|
||||
String squareAppId;
|
||||
String squareAccessToken;
|
||||
String squareLocationId;
|
||||
String publishableKey;
|
||||
String merchantId;
|
||||
int? id;
|
||||
String? name;
|
||||
String? code;
|
||||
String? method;
|
||||
String? icon;
|
||||
String? xLogin;
|
||||
String? transactionKey;
|
||||
String? responseKey;
|
||||
String? squareAppId;
|
||||
String? squareAccessToken;
|
||||
String? squareLocationId;
|
||||
String? publishableKey;
|
||||
String? merchantId;
|
||||
|
||||
PaymentPlatform(this.code);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user