seconds property

Duration get seconds

Converts the number to a Duration in seconds.

Implementation

Duration get seconds => Duration(seconds: toInt());