add comparator

This commit is contained in:
Salvatore Giordano
2020-03-09 00:07:28 +01:00
parent 9af6647f1a
commit 1936cbb6ad
4 changed files with 14 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ class _MyAppState extends State<MyApp> {
favorite: ['+39', 'FR'],
showFlag: false,
showFlagDialog: true,
comparator: (a, b) => b.name.compareTo(a.name),
//Get the country information relevant to the initial selection
onInit: (code) => print("${code.name} ${code.dialCode}"),
),