secondsDuration property

Duration secondsDuration

Creates a Duration object representing a number of seconds.

Example:

print(60.secondsDuration); // Output: 0:01:00.000000

Implementation

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