isNonEmptyString top-level property

Matcher isNonEmptyString
final

Asserts that a value is a non-empty String.

Implementation

final Matcher isNonEmptyString = predicate(
    (value) => value is String && value.trim().isNotEmpty,
    'a non-empty string')