typecaste integer value to double in flutter code example Example: dart convert int to double int intVar = 5; double doubleVar = intVar.toDouble();