minLength function

Matcher minLength(
  1. int length
)

Enforces a minimum length on a string.

Implementation

Matcher minLength(int length) => predicate(
    (dynamic value) => value is String && value.length >= length,
    'a string at least $length character(s) long');