isNullOrEmpty function

bool isNullOrEmpty(
  1. String? str
)

Checks whether a string is null or empty or not.

Implementation

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