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 $counter = "0";
I searched a lot but more at all I only found something like var myInt = int.parse('12345');
that doesn't work with var myInt = int.parse(counter);
You can use the .toString() function in the int class.
then you can simply covert integers to the Strings.
// String to int
// int to String
// If the latter one looks weird, look into string interpolation on https://dart.dev
Use
toString
and/ortoRadixString
or, as in the commment