I get name of font awesome from api that I want to access element of font_awesome_flutter package but I know it in C# but I do not know in flutter: received from server:
{
"fontawesomeName":"breadSlice"
}
in font_awesome package I can access its element by below
IconButton(
icon: FaIcon(FontAwesomeIcons.breadSlice),
onPressed: () { print("Pressed"); }
)
But How do I access element of object with string name in flutter?