CustomTimeRange constructor

const CustomTimeRange(
  1. DateTime from,
  2. DateTime to
)

The timezone is assumed by the from passed in here.

CustomTimeRange does NOT ensure that from and to have the same timezone.

Implementation

const CustomTimeRange(this.from, this.to)
    : assert(from <= to, "[from] must be before or equal to [to]");