convert string to int dart flutter code example
Example 1: string to double fultter
var long2 = double.parse("STRING");
Example 2: Flutter turn string to int
// String -> int
main () {
var one = int.parse('1');
print(one == 1); // prints true
}