Limits the maximum length of a string.
Matcher maxLength(int length) => predicate( (dynamic value) => value is String && value.length <= length, 'a string no longer than $length character(s) long');