EntertainmentSegment constructor

EntertainmentSegment({
  1. required int start,
  2. required int length,
})

Creates a EntertainmentSegment object.

Implementation

EntertainmentSegment({
  required this.start,
  required this.length,
})  : assert(start >= 0, "`start` must be at least 0"),
      assert(length >= 1, "`length` must be at least 1");