getTargetPageForCurrent method

double getTargetPageForCurrent(
  1. double currentPage,
  2. DayOfWeek firstDayOfWeek,
  3. {double velocity = 0,
  4. Tolerance tolerance = Tolerance.defaultTolerance}
)

Gets the page to align to the viewport's left side based on the currentPage in that position.

Implementation

double getTargetPageForCurrent(
  double currentPage,
  DayOfWeek firstDayOfWeek, {
  double velocity = 0,
  Tolerance tolerance = Tolerance.defaultTolerance,
});