isNullOrWhitespace function

bool isNullOrWhitespace(
  1. String? value
)

Implementation

bool isNullOrWhitespace(String? value) {
  if (value == null) return true;
  return value.trim().isEmpty;
}