isNullOrEmpty method Null safety

bool isNullOrEmpty(
  1. String? str
)

Implementation

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