sec property
Duration
get
sec
Converts this number to a Duration in seconds.
Fractional values are truncated with toInt().
Example: 10.sec -> Duration(seconds: 10) for polling.
Implementation
Duration get sec => Duration(seconds: toInt());