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

Code Example 1

// String -> double
main () {
    var onePointOne = double.parse('1.1');
    print(onePointOne == 1.1); // prints true
}

Code Example 2

// String -> int
main () {
    var one = int.parse('1');
    print(one == 1); // prints true
}

Learn ReactJs, React Native from akashmittal.com