snapToCoverage method

void snapToCoverage()

Instantly snap the image transform to the nearest crop-covering state — the live fit that runs on every handle-drag update (telegram's non-animated fitContentInsideBoundsAllowScale).

Implementation

void snapToCoverage() {
  _settleAnimator.cancel();
  imageTransform.update(_coveredTransform());
}