Check out example codes for "string to double fultter". It will help you in understanding the concepts better.

Code Example 1

var long2 = double.parse("STRING");

Learn ReactJs, React Native from akashmittal.com