round method

Time round(
  1. int value,
  2. TimeUnit unit
)

Rounds this Time to the nearest value.

Implementation

Time round(int value, TimeUnit unit) => _adjust(value, unit, math.round);