getTargetPageForFocusDate method

double getTargetPageForFocusDate(
  1. LocalDate focusDate,
  2. DayOfWeek firstDayOfWeek
)

Convenience method of getTargetPageForFocus taking a LocalDate.

Implementation

double getTargetPageForFocusDate(
    LocalDate focusDate, DayOfWeek firstDayOfWeek) {
  assert(focusDate != null);
  return getTargetPageForFocus(focusDate.epochDay.toDouble(), firstDayOfWeek);
}