notNullOrBlank function Null safety

Predicate<String?> notNullOrBlank()

Implementation

Predicate<String?> notNullOrBlank() {
  return (x) => x?.isNotEmpty == true;
}