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