Realtime constructor

const Realtime({
  1. bool today = false,
  2. bool tomorrow = false,
  3. bool yesterday = false,
  4. int days = 0,
  5. int hours = 0,
  6. int minutes = 0,
  7. int seconds = 0,
  8. int milliseconds = 0,
  9. int microseconds = 0,
})

Constructs a Realtime instance with the specified parameters.

Example:

Realtime myTime = Realtime(
  today: true,
  hours: 2,
  minutes: 30,
);
print(myTime.isHourMode);  // Output: true

Implementation

const Realtime({
  this.today = false,
  this.tomorrow = false,
  this.yesterday = false,
  this.days = 0,
  this.hours = 0,
  this.minutes = 0,
  this.seconds = 0,
  this.milliseconds = 0,
  this.microseconds = 0,
});