icon static method

Widget? icon({
  1. required Pluggable pluggableInfo,
})

Implementation

static Widget? icon({
  required Pluggable pluggableInfo,
}) {
  if (!_icons.containsKey(pluggableInfo.name)) {
    final i = Image(image: pluggableInfo.iconImageProvider);
    _icons.putIfAbsent(pluggableInfo.name, () => i);
  } else if (!_icons.containsKey(pluggableInfo.name)) {
    return Container();
  }
  return _icons[pluggableInfo.name];
}