refreshOriginals method

  1. @override
void refreshOriginals()
override

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() {
  metadata.refreshOriginals();
  _originalMetadata = metadata.copyWith();
  _originalConfigurationType = configurationType;
  streamProxy.refreshOriginals();
  _originalStreamProxy = streamProxy.copyWith();
  _originalLocations = locations.map((location) {
    location.refreshOriginals();
    return location.copyWith();
  }).toList();
  _originalAction = action;
  super.refreshOriginals();
}