minOrNull method

T? minOrNull([
  1. T? ifNull
])

Implementation

T? minOrNull([T? ifNull]) {
  T? _min;
  for (final t in this) {
    if (_min == null || t.compareTo(_min) < 0) {
      _min = t;
    }
  }
  return _min ?? ifNull;
}