minOrThrow property

T get minOrThrow

Smallest element. Throws StateError if empty.

Implementation

T get minOrThrow => minOrNull ?? (throw StateError('Empty iterable.'));