How do we print the int value in Text widget? I tried using '$num' but it just come out as instance of num.
This is what i tried so far
Text(
'$widget.count'+'. ',
style: TextStyle(
fontFamily: 'sansPro',
fontSize: 15,
color: Colors.black,
fontWeight: FontWeight.bold,
),
),