Period<T extends Comparable<T>> constructor

Period<T extends Comparable<T>>(
  1. T start, [
  2. T? end,
  3. int priority = 0
])

Creates a Period with the given start and end time, and priority.

Implementation

Period(this.start, [T? end, this.priority = 0]): end = end ?? start;