isNonEmptyString top-level property
Asserts that a value is a non-empty String
.
Implementation
final Matcher isNonEmptyString = predicate(
(dynamic value) => value is String && value.trim().isNotEmpty,
'a non-empty string');
Asserts that a value is a non-empty String
.
final Matcher isNonEmptyString = predicate(
(dynamic value) => value is String && value.trim().isNotEmpty,
'a non-empty string');