seconds property

Duration get seconds

Converts the integer to a Duration representing the given number of seconds.

Example:

final duration = 5.seconds;

Implementation

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