min method
- return the element with the minimum value
- return the element with the max value
! throws
StateError
if isEmpty
Implementation
/// * return the element with the max value
/// ! throws `StateError` if isEmpty
num min() => minOrNull() ?? (throw StateError('list is empty'));