I can clone Maps like this:
var copy = json.decode(json.encode(original));
but how could I do similar thing for classes without converting it to a Map?
var original = new Original();
var copy = original;
copy.prop = "New";
print(original.prop); // this should be "old", not "new"