min method

E? min()

Returns the smallest element or null if there are no elements.

Implementation

E? min() {
  final self = this;
  return self != null && self.isNotEmpty ? self.reduce(math.min) : null;
}