Event constructor

const Event(
  1. {@required Object id,
  2. @required LocalDateTime start,
  3. @required LocalDateTime end}
)

Implementation

const Event({
  @required this.id,
  @required this.start,
  @required this.end,
})  : assert(id != null),
      assert(start != null),
      assert(end != null),
      assert(start <= end);