minDuration function

Duration minDuration(
  1. Duration a,
  2. Duration b
)

Implementation

Duration minDuration(Duration a, Duration b) {
  return a < b ? a : b;
}