day property

Duration get day

Converts this number to a Duration in days.

Fractional values are truncated with toInt(). Example: 2.day -> Duration(days: 2) for news cache TTL.

Implementation

Duration get day => Duration(days: toInt());