refreshOriginals method

void refreshOriginals()

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

void refreshOriginals() {
  _originalService = service.copyWith();
  _originalPositions =
      positions.map((position) => position.copyWith()).toList();
  _originalEqualizationFactor = equalizationFactor;
}