Expiry constructor

Expiry({
  1. required DateTime startTime,
  2. ExpireUnit unit = ExpireUnit.days,
  3. 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,
});