roundToMinutes method

Duration roundToMinutes()

Rounds this duration to the nearest minute.

Implementation

Duration roundToMinutes() => Duration(minutes: (inSeconds / 60).round());