max method

T max([
  1. T? ifNull
])

Implementation

T max([T? ifNull]) {
  return maxOrNull(ifNull) ?? (throw IndexError(0, this));
}