How to convert a String value to double in flutter?

This solution will give you how to convert a given string to a double value in the dart.

Let's assume we have a string value like below

String value1 = '37467324';

 

Now to convert this string to a double value we will use the parse method of double class

 

double parse (String source)

 

Example

double.parse(value1 )

which will return the following output

37467324.0