hasValidCollection property
bool
get
hasValidCollection
Returns true collection is not null
, does not contain only empty strings, and is not empty.
Implementation
bool get hasValidCollection =>
(collection != null &&
collection!.map((e) => e.trim().nullIfEmpty).nonNulls.isNotEmpty);