max method

Duration max(
  1. Duration duration,
  2. Duration duration2
)

Implementation

Duration max(Duration duration, Duration duration2) {
  if (duration > duration2) {
    return duration;
  }
  return duration2;
}