add some documentation

This commit is contained in:
Salvatore Giordano
2018-05-05 11:22:54 +02:00
parent 5dc8b256c9
commit 1614174f13
6 changed files with 26 additions and 16 deletions

View File

@@ -55,8 +55,9 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
favoriteElements = elements
.where((e) =>
widget.favorite
.firstWhere((f) => e.code == f.toUpperCase() || e.dialCode == f.toString(), orElse: () => null) !=
widget.favorite.firstWhere(
(f) => e.code == f.toUpperCase() || e.dialCode == f.toString(),
orElse: () => null) !=
null)
.toList();
super.initState();