days property Null safety

Duration days

Returns a Duration representing the current value as days.

Example:

14.days; // Duration(days: 14);

Implementation

Duration get days {
  return Duration(days: this);
}