iconPickerName function
Implementation
String iconPickerName(IconData icon) {
Map<String, IconData> iconList;
switch (icon.fontFamily) {
case 'CupertinoIcons':
iconList = cupertinoIcons;
break;
default:
iconList = materialIcon;
break;
}
for (final item in iconList.keys.toList()) {
if (iconList[item]!.codePoint == icon.codePoint) {
return item;
}
}
return iconList.keys.first;
}