secondsOnly property

int get secondsOnly

Returns the seconds component of the Duration.

Example:

Duration(minutes: 3, seconds: 4).secondsOnly; // 4

Implementation

int get secondsOnly => inSeconds.remainder(60);