I'm trying to use a value from a API, but this value need some changes before show.
This is how I receive the value:
Name.MAGIC
and I want it to show like this:
Magic
Here's the code
Text(
finalApi![widget.index].type.name.toString(),
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 15,
),
),
Any ideas?