max method
Implementation
List<T> max(int length, {String? name}) {
if (this.length > length) {
throw ArgumentException(
"Incorrect ${name == null ? '' : '$name '}array length.",
details: {'maximum': length, 'length': this.length});
}
return this;
}