getIconFromModelWithFlutterColor static method
Implementation
static Icon getIconFromModelWithFlutterColor(
{IconModel? iconModel, Color? color, String? semanticLabel}) {
if (iconModel == null) {
return Icon(Icons.touch_app, color: color, semanticLabel: semanticLabel);
}
if (iconModel.fontFamily == null) {
return Icon(IconData(iconModel.codePoint!, fontFamily: 'MaterialIcons'),
color: color, semanticLabel: semanticLabel);
}
return Icon(
IconData(iconModel.codePoint!, fontFamily: iconModel.fontFamily),
color: color,
semanticLabel: semanticLabel);
}