Frequency.Once constructor Null safety

Frequency.Once(
  1. String pName
)

single occureance frequency constructor

Implementation

Frequency.Once(String pName) {
  this.name = pName;
  this.isOnce = true;

  this.isDynamic = false;
  this.isText = false;
  this.timesPerDay = 0;
  this.timesPerWeek = 0;
  this.timesPerMonth = 0;
  this.timesPerYear = 0;
  this.hoursAtDay = [];
  this.daysAtWeek = [];
  this.daysAtMonth = [];
  this.daysAtYear = [];
}