minOrZero method

num minOrZero()
  • return the element with the minimum value
  • return value if isEmpty

Implementation

num minOrZero() => minOrNull() ?? 0;