Expiry class

Represents the expiry configuration.

Constructors

Expiry({required DateTime startTime, ExpireUnit unit = ExpireUnit.days, int duration = 1})
Creates a new instance of Expiry.

Properties

duration int
The duration for the expiry.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime
The start time for the expiry duration.
final
unit ExpireUnit
The unit for the expiry duration.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the expiry configuration to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

kDateFormat → const String