type double is not sub type of int in flutter searilation code example Example: 'int' is not a subtype of type 'double' dart double myDouble = myInt.toDouble();