In your specific case you need to wrap the data with {}, So update the code to the following,
Text(
'${widget.count}''. ',
//...
);
And for more details:
To "print" or "render" a num value that is an int or a double in dart you can use the .toString() method on the variable. You can also use "String Interpolation" that is to evaluate a variable or an expression in a String.
For Example to create a Text widget that renders the a variable X:
Text(x.toString());
And using String Interpolation, you can use:
Text("$x");
If the variable needs to be evaluated as a part of an expression, That is if the vailable is part of an Object or you want to apply an operation before evaluating the final value, then the expression needs to be wrapped within {}, the code for that would be
Text("${x * 100}");
intValue.toString()"$myInt"should be able to handle puting int values inside string. Can you add a bit more detail? Perhaps a few more line of code?{}i.e.'${widget.count}'+'. ',