diff --git a/lib/country_code_picker.dart b/lib/country_code_picker.dart index 1c96fdd..858a50e 100644 --- a/lib/country_code_picker.dart +++ b/lib/country_code_picker.dart @@ -44,10 +44,10 @@ class _CountryCodePickerState extends State { @override initState() { if (widget.initialSelection != null) { - selectedItem = elements.firstWhere((e) { - e.code.toUpperCase() == widget.initialSelection.toUpperCase() || - e.dialCode == widget.initialSelection.toString(); - }, orElse: () => elements[0]); + selectedItem = elements.firstWhere( + (e) => (e.code.toUpperCase() == widget.initialSelection.toUpperCase()) || + (e.dialCode == widget.initialSelection.toString()), + orElse: () => elements[0]); } else { selectedItem = elements[0]; }