refreshOriginals method
Called after a successful PUT request, this method refreshed the "original" data in this object.
This way, on the next PUT request, the program will know what data is actually new.
Implementation
@override
void refreshOriginals() {
_originalActions = actions.map((action) {
action.refreshOriginals();
return action.copyWith();
}).toList();
recall.refreshOriginals();
_originalRecall = recall.copyWith();
metadata.refreshOriginals();
_originalMetadata = metadata.copyWith();
palette.refreshOriginals();
_originalPalette = palette.copyWith();
_originalSpeed = speed;
_originalAutoDynamic = autoDynamic;
super.refreshOriginals();
}