takeAnchor method
The anchor of the most recent zoom that changed the factor, or null.
Cleared as it is read, so an anchor from one gesture can never be applied a second time — to a later, unrelated change, or after the sheet has been scrolled since.
Implementation
Offset? takeAnchor() {
final anchor = _pendingAnchor;
_pendingAnchor = null;
return anchor;
}