TimeRange({ required this.start, required this.end, }) : assert(start.isBefore(end), 'start must be less than end.');