VisibleDateRange.days constructor

VisibleDateRange.days(
  1. int visibleDayCount, {
  2. int swipeRange,
  3. DateTime? alignmentDate,
  4. DateTime? minDate,
  5. DateTime? maxDate,
})

A visible range that shows visibleDayCount consecutive days.

This range snaps to every swipeRange days (defaults to every day) that are aligned to alignmentDate (defaults to today).

When set, swiping is limited from minDate to maxDate so that both can still be seen.

Implementation

factory VisibleDateRange.days(
  int visibleDayCount, {
  int swipeRange,
  DateTime? alignmentDate,
  DateTime? minDate,
  DateTime? maxDate,
}) = DaysVisibleDateRange;