flutter cast to double code example
Example 1: dart convert int to double
int intVar = 5;
double doubleVar = intVar.toDouble();
Example 2: convert string to double flutter
var long2 = double.parse("STRING");
int intVar = 5;
double doubleVar = intVar.toDouble();
var long2 = double.parse("STRING");