reset method

  1. @mustCallSuper
void reset()

Resets the cached values and state of the snapping behavior.

This method is called when the sheet is disposed or reinitialized.

Implementation

@mustCallSuper
void reset() {
  cachedClosestOffsets.clear();
  cachedState.clear();
  cachedStateFromOffset.clear();
  _avaliableSpace = 0;
  _hasSizes = false;
  snappingOffsets = null;
}