I\'m new with Flutter and I wonder about how difficult is (for me) to find a solution on how to convert my variable var int counter = 0; into a variable var String $
Use toString and/or toRadixString
toString
toRadixString
int intValue = 1; String stringValue = intValue.toString(); String hexValue = intValue.toRadixString(16);
or, as in the commment
String anotherValue = 'the value is $intValue';