Expiry constructor
Expiry({
- required DateTime startTime,
- ExpireUnit unit = ExpireUnit.days,
- int duration = 1,
Creates a new instance of Expiry.
startTime is the start time for the expiry duration.
unit is the unit for the expiry duration.
duration is the duration for the expiry.
Implementation
Expiry({
required this.startTime,
this.unit = ExpireUnit.days,
this.duration = 1,
});