type 'int' is not a subtype of type 'String' error in Dart code example Example: 'int' is not a subtype of type 'double' dart double myDouble = myInt.toDouble();