seconds property

Duration get seconds

Converts seconds to a Duration.

Example:

60.seconds; // Duration(seconds: 60)

Implementation

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