max method

BigInt max()

Returns min value of values.

Implementation

BigInt max() {
  final max = isEmpty
      ? BigInt.zero
      : reduce((value, element) => value > element ? value : element);
  return max;
}