RelativeDuration constructor
RelativeDuration({})
Implementation
RelativeDuration({
int years = 0,
int months = 0,
int days = 0,
int hours = 0,
int minutes = 0,
int seconds = 0,
int milliseconds = 0,
int microseconds = 0,
}) : _months = years * 12 + months,
_days = days,
_microseconds = hours * Duration.microsecondsPerHour +
minutes * Duration.microsecondsPerMinute +
seconds * Duration.microsecondsPerSecond +
milliseconds * Duration.microsecondsPerMillisecond +
microseconds;