flutter float to int code example Example: how to convert int/int to float dart int x = 10; double a = x.toDouble();