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