maxLength function

Matcher maxLength (
  1. int length
)

Limits the maximum length of a string.

Implementation

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