CalendarSelection.guessOrder constructor

CalendarSelection.guessOrder(
  1. String? id,
  2. Date a,
  3. Date? b
)

Tries to infer the start and end dates from the two given dates. Doesn't support null dates.

Implementation

CalendarSelection.guessOrder(String? id, Date a, Date? b)
    : this(id, earlierOf(a, b), laterOf(a, b));