Skip to content

Commit 1274170

Browse files
authored
Adjusting null check
1 parent 31c76ec commit 1274170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/form_builder_phone_field.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ class _FormBuilderPhoneFieldState
345345
try {
346346
final parseResult = PhoneNumber.parse(phone);
347347
final isoCode = parseResult.isoCode.name.split(".").last;
348-
Country? country = CountryPickerUtils.getCountryByIsoCode(isoCode);
348+
Country country = CountryPickerUtils.getCountryByIsoCode(isoCode);
349349
setState(() {
350-
_selectedDialogCountry = country!;
350+
_selectedDialogCountry = country;
351351
});
352352
_effectiveController.text = parseResult.nsn;
353353
} catch (error) {

0 commit comments

Comments
 (0)