truncate method
Returns a copy of this truncated to the TimeUnit.
final time = OffsetTime(Offset(8), 12, 39, 59, 999);
time.truncate(to: TimeUnit.minutes); // 12:39+08:00
Implementation
@useResult OffsetTime truncate({required TimeUnit to}) => OffsetTime._(offset, _native.truncate(to: to));