toIcon method

IconData? toIcon(
  1. String name
)

Implementation

IconData? toIcon(String name)
{
  IconData? icon;
  if (libraryLoader?.isCompleted ?? false)
  {
    name = name.toLowerCase();
    if (icons.Graphics.icons.containsKey(name)) icon = icons.Graphics.icons[name];
  }
  else
  {
    _pendingIcon = name;
    icon = Icons.horizontal_rule;
  }
  return icon;
}