Add more frequencies.
This commit is contained in:
parent
2acabf4d3b
commit
9d8a5e6685
@ -1,12 +1,53 @@
|
|||||||
// https://www.tutorialspoint.com/dart_programming/dart_programming_enumeration.htm
|
// https://www.tutorialspoint.com/dart_programming/dart_programming_enumeration.htm
|
||||||
enum Frequency {
|
enum Frequency {
|
||||||
daily(title: "Daily"),
|
daily(
|
||||||
weekly(title: "Weekly"),
|
title: "Daily",
|
||||||
biweekly(title: "Biweekly"),
|
hint: "Once Per Day",
|
||||||
montly(title: "Monthly"),
|
timesPerYear: 364.25,
|
||||||
yearly(title: "Yearly");
|
),
|
||||||
|
weekly(
|
||||||
|
title: "Weekly",
|
||||||
|
hint: "Once Per Week",
|
||||||
|
timesPerYear: (364.25/7),
|
||||||
|
),
|
||||||
|
biweekly(
|
||||||
|
title: "Biweekly",
|
||||||
|
hint: "Every Other Week",
|
||||||
|
timesPerYear: (364.25/7/2),
|
||||||
|
),
|
||||||
|
bimonthly(
|
||||||
|
title: "Bimonthly",
|
||||||
|
hint: "Twice Per Month",
|
||||||
|
timesPerYear: 24,
|
||||||
|
),
|
||||||
|
montly(
|
||||||
|
title: "Monthly",
|
||||||
|
hint: "Once Per Month",
|
||||||
|
timesPerYear: 12,
|
||||||
|
),
|
||||||
|
quarterly(
|
||||||
|
title: "Quarterly",
|
||||||
|
hint: "Every Three Months",
|
||||||
|
timesPerYear: 4,
|
||||||
|
),
|
||||||
|
biannual(
|
||||||
|
title: "Biannual",
|
||||||
|
hint: "Twice Per Year",
|
||||||
|
timesPerYear: 2,
|
||||||
|
),
|
||||||
|
yearly(
|
||||||
|
title: "Yearly",
|
||||||
|
hint: "Once Per Year",
|
||||||
|
timesPerYear: 1,
|
||||||
|
);
|
||||||
|
|
||||||
const Frequency({required this.title});
|
const Frequency({
|
||||||
|
required this.title,
|
||||||
|
required this.hint,
|
||||||
|
required this.timesPerYear,
|
||||||
|
});
|
||||||
|
|
||||||
final String title;
|
final String title;
|
||||||
|
final String hint;
|
||||||
|
final double timesPerYear;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user