setDuration method

void setDuration(
  1. DateTime start,
  2. DateTime end, {
  3. bool startAllDay = false,
  4. bool endAllDay = false,
})

Implementation

void setDuration(
  DateTime start,
  DateTime end, {
  bool startAllDay = false,
  bool endAllDay = false,
}) {
  _start = start.millisecondsSinceEpoch;
  _end = end.millisecondsSinceEpoch;
  _startAllDay = startAllDay;
  _endAllDay = endAllDay;
}