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