isNotBlank static method

bool isNotBlank(
  1. String? str
)

return if given string is not blank

Implementation

static bool isNotBlank(String? str) {
  if (str != null && str.trim() != "") {
    return true;
  }
  return false;
}