seconds property

Duration get seconds

Converts the double value to a Duration in seconds.

Implementation

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