iconPicker function

IconData? iconPicker(
  1. String name,
  2. String fontFamily
)

Implementation

IconData? iconPicker(String name, String fontFamily) {
  switch (fontFamily) {
    case 'CupertinoIcons':
      return cupertinoIcons[name];
    default:
      return materialIcon[name];
  }
}