Check out example codes for "dart convert int to double". It will help you in understanding the concepts better.

Code Example 1

int intVar = 5;
double doubleVar = intVar.toDouble();

Learn ReactJs, React Native from akashmittal.com