Flutter toString() seems to be different on debug and release mode
This happened after migrating from Flutter 3.10.5 to 3.24.5. I have a method on a class that uses a String with the information of what FontWeight to use. Basically, something like this: final fontWightText = `w400`; final fontWeight = FontWeight.values.firstWhere(…