isNullOREmpty static method

bool isNullOREmpty(
  1. String? str
)

check string is null or empty

Implementation

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