restoreSnapshot method
void
restoreSnapshot()
Restore the layer to the last saveSnapshot. No-op if none saved.
Implementation
void restoreSnapshot() {
final s = _snapshot;
if (s == null) return;
_revertSession = null;
rotationScaleFloor = null;
_settleAnimator.cancel();
_renderAnimator.cancel();
_flipAnimator.cancel();
_flipDecoration = 0;
imageTransform.update(s.imageTransform);
crop = s.crop;
_showBackdrop(animated: false);
notifyListeners();
}