getSnapOffset abstract method

SheetOffset getSnapOffset(
  1. ViewportLayout layout,
  2. double offset,
  3. double velocity
)

Returns an position to which a sheet should eventually settle based on the current layout, offset and velocity of the sheet.

Implementation

SheetOffset getSnapOffset(
  ViewportLayout layout,
  double offset,
  double velocity,
);