isBlank static method

bool isBlank(
  1. String? value
)

Checks if a string is blank (empty or only whitespace)

Example:

Helpers.isBlank('   '); // true

Implementation

static bool isBlank(String? value) {
  return value == null || value.trim().isEmpty;
}