iconData static method

int iconData(
  1. String key
)

Utils function to retrieve the icon from the IconData dictionary

Implementation

static int iconData(String key) {
  int? codePoint = Utils.getIt<IconDataDict>().iconDict[key];
  return codePoint != null ? codePoint : -1;
}