Requires a number less than or equal to max.
max
factory ResultFormat.max(String errorMsg, num max) = _MaxResultType;