inSeconds property

int inSeconds

Returns the number of whole seconds spanned by this Duration.

The returned value can be greater than 59.

Implementation

int get inSeconds => _duration ~/ Duration.microsecondsPerSecond;