TimeFrame constructor

TimeFrame({
  1. int days = 0,
  2. int hours = 0,
  3. int minutes = 0,
  4. int seconds = 0,
  5. CommonTimeFrame? commonTimeFrame,
})

Creates a new TimeFrame with the given days, hours, minutes and seconds, or commonTimeFrame.

TimeFrame frame1 = TimeFrame(days: 1, hours: 2, minutes: 3, seconds: 4);
TimeFrame frame2 = TimeFrame(commonTimeFrame: CommonTimeFrame.forever);

Implementation

TimeFrame({
  this.days = 0,
  this.hours = 0,
  this.minutes = 0,
  this.seconds = 0,
  CommonTimeFrame? commonTimeFrame,
}) : _commonTimeFrame = commonTimeFrame;