max method

int max()

Implementation

int max() =>
    reduceOr(0, (value, element) => value > element ? value : element);