File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ class ExchangeParams {
140
140
141
141
@immutable
142
142
class Contact {
143
- final String ? name;
144
- final Address ? address;
143
+ final String name;
144
+ final Address address;
145
145
146
146
Contact ({
147
147
required this .name,
Original file line number Diff line number Diff line change @@ -227,8 +227,8 @@ class _AccountScreenBodyState extends State<AccountScreenBody> {
227
227
print ('Alias $alias ' );
228
228
229
229
final _newContact = Contact (
230
- name: alias,
231
- address: address,
230
+ name: alias! ,
231
+ address: address! ,
232
232
);
233
233
234
234
_appState.addContact (_newContact, isPersistent: true );
Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ class _NewContactScreenBodyState extends State<NewContactScreenBody> {
95
95
if (_formKey.currentState! .validate ()) {
96
96
context.read <AppState >().addContact (
97
97
Contact (
98
- name: _name,
99
- address: _address,
98
+ name: _name! ,
99
+ address: _address! ,
100
100
),
101
101
isPersistent: true ,
102
102
);
You can’t perform that action at this time.
0 commit comments