roundToSeconds method
Rounds the duration to the nearest second.
Implementation
Duration roundToSeconds() =>
Duration(seconds: (inMilliseconds / 1000).round());
Rounds the duration to the nearest second.
Duration roundToSeconds() =>
Duration(seconds: (inMilliseconds / 1000).round());