TimeDifference constructor
const
TimeDifference({
- required int value,
- required LitTimeUnit unit,
Creates a TimeDifference.
Pass the difference of you date relative to another date and its corresponding unit.
-
value
describes an integer value. The value may be negative if e.g. the date is in the past. -
unit
is the time unit of the date.
Implementation
const TimeDifference({
required this.value,
required this.unit,
});