minOr method

num minOr(
  1. num value
)
  • return the element with the minimum value
  • return value if isEmpty

Implementation

num minOr(num value) => minOrNull() ?? value;