add comparator
This commit is contained in:
1 parent
9af6647f1a
commit
1936cbb6ad
4 files changed
+14
-1
No files matched your search
@@ -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}"),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user