TimeFrame constructor
TimeFrame({
- int days = 0,
- int hours = 0,
- int minutes = 0,
- int seconds = 0,
- 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;