isNull function

bool isNull(
  1. String str
)

check if the string is null

Implementation

bool isNull(String str) {
  return str == null || str.length == 0;
}